-
Bug
-
Resolution: Done
-
Major
-
6.4.0.Final
-
None
-
NEW
-
NEW
Regression from 6.3 to 6.4 according to this stackoverflow post:
http://stackoverflow.com/questions/36933645/illegalargumentexception-since-version-6-4-0-final?noredirect=1#comment61761179_36933645
Reproduced with a TestdataGenericSolution unit test:
java.lang.IllegalArgumentException: The entityClass (class org.optaplanner.core.impl.testdata.domain.reflect.generic.TestdataGenericEntity) has a PlanningVariable annotated property (value) that refers to a ValueRangeProvider annotated member (bean property valueList on class org.optaplanner.core.impl.testdata.domain.reflect.generic.TestdataGenericSolution) that returns a parameterized Collection with an unsupported type arguments (org.optaplanner.core.impl.testdata.domain.reflect.generic.TestdataGenericValue<T>). at org.optaplanner.core.impl.domain.valuerange.descriptor.AbstractFromPropertyValueRangeDescriptor.processValueRangeProviderAnnotation(AbstractFromPropertyValueRangeDescriptor.java:111) at org.optaplanner.core.impl.domain.valuerange.descriptor.AbstractFromPropertyValueRangeDescriptor.<init>(AbstractFromPropertyValueRangeDescriptor.java:57) at org.optaplanner.core.impl.domain.valuerange.descriptor.FromSolutionPropertyValueRangeDescriptor.<init>(FromSolutionPropertyValueRangeDescriptor.java:34) at org.optaplanner.core.impl.domain.variable.descriptor.GenuineVariableDescriptor.buildValueRangeDescriptor(GenuineVariableDescriptor.java:149) at org.optaplanner.core.impl.domain.variable.descriptor.GenuineVariableDescriptor.processValueRangeRefs(GenuineVariableDescriptor.java:136) at org.optaplanner.core.impl.domain.variable.descriptor.GenuineVariableDescriptor.processPropertyAnnotations(GenuineVariableDescriptor.java:76) at org.optaplanner.core.impl.domain.variable.descriptor.GenuineVariableDescriptor.processAnnotations(GenuineVariableDescriptor.java:69) at org.optaplanner.core.impl.domain.entity.descriptor.EntityDescriptor.registerVariableAccessor(EntityDescriptor.java:202) at org.optaplanner.core.impl.domain.entity.descriptor.EntityDescriptor.processPlanningVariableAnnotations(EntityDescriptor.java:173) at org.optaplanner.core.impl.domain.entity.descriptor.EntityDescriptor.processAnnotations(EntityDescriptor.java:92) at org.optaplanner.core.impl.domain.solution.descriptor.SolutionDescriptor.buildSolutionDescriptor(SolutionDescriptor.java:82) at org.optaplanner.core.impl.domain.solution.descriptor.SolutionDescriptor.buildSolutionDescriptor(SolutionDescriptor.java:71) at org.optaplanner.core.impl.testdata.domain.reflect.generic.TestdataGenericSolution.buildSolutionDescriptor(TestdataGenericSolution.java:34) at org.optaplanner.core.impl.domain.solution.descriptor.SolutionDescriptorTest.generic(SolutionDescriptorTest.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Seems like the fail fast is a bit too strict.