-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
NEW
-
NEW
This config:
<localSearch> <unionMoveSelector> <changeMoveSelector> <entitySelector id="entitySelector1"/> <valueSelector> <nearbySelection> <originEntitySelector mimicSelectorRef="entitySelector1"/> <nearbyDistanceMeterClass>THIS_DOES_NOT_EXIST</nearbyDistanceMeterClass> <parabolicDistributionSizeMaximum>80</parabolicDistributionSizeMaximum> </nearbySelection> </valueSelector> </changeMoveSelector> ...
builds fine and gives this exception at runtime:
java.lang.IllegalArgumentException: The nearbySelectorConfig (NearbySelectionConfig()) is nearby selection but lacks a nearbyDistanceMeterClass (null).
That's dangerous. Luckily runtime fail on it, but it could have also silently ran - running something differently at runtime than what the user asked for, which is basically lying to the user.
If optaplanner-quarkus fails to do it's job, for example because that nearbyDistanceMeterClass "THIS_DOES_NOT_EXIST" doesn't exist, it should fail fast during the build already.