Using a List<Optional<PersoonFast>>
(where PersoonFast
is a proper class) as @ValueRangeProvider
, I get the following exception:
Exception in thread "main" java.lang.IllegalArgumentException: The entityClass (class nl.smartinstall.titania.solver.Bezetting) has a PlanningVariable annotated property (persoon) that refers to a ValueRangeProvider annotated member (field private java.util.List nl.smartinstall.titania.solver.PlanningDefault.personen) that returns a parameterized Collection with an unsupported type arguments (java.util.Optional<nl.smartinstall.titania.solver.PersoonFast>).
Optaplanner version 6.3.0.Final accepts this construction and works fine, version 6.4.0.Final throws the exception. Could anyone please explain why the exception is thrown? Is there a workaround?