-
Bug
-
Resolution: Done
-
Optional
-
None
-
None
-
2022 Week 35-37 (from Aug 29)
-
NEW
-
NEW
<termination> <bestScoreFeasible>true</bestScoreFeasible> </termination>
or
.withTerminationConfig(new TerminationConfig().withBestScoreFeasible(true))
throws
java.lang.NegativeArraySizeException: -1 at org.optaplanner.core.impl.solver.termination.TerminationFactory.buildTermination(TerminationFactory.java:66) at org.optaplanner.core.impl.solver.termination.TerminationFactory.buildTermination(TerminationFactory.java:31) at org.optaplanner.core.impl.solver.DefaultSolverFactory.buildSolver(DefaultSolverFactory.java:124)
if used on a domain with SimpleScore or another score type that has zero feasible levels.
Goal: avoid NegativeArraySizeException and throw an exception with a helpful message.