-
Bug
-
Resolution: Done
-
Major
-
7.0.0.Final
-
None
-
2018 Week 33-35
-
-
NEW
-
NEW
The problem is that Optaplanner uses Int.MAX_VALUE to represent no limit on parabolic distribution (1), however it performs arithmetic operations on this value (2) which causes it to wrap round to Int.MIN_VALUE which causes the exception to be thrown when used to set the array size (3)
1: https://github.com/kiegroup/optaplanner/blob/7.0.x/optaplanner-core/src/main/java/org/optaplanner/core/config/heuristic/selector/common/nearby/NearbySelectionConfig.java#L266
2: https://github.com/kiegroup/optaplanner/blob/7.0.x/optaplanner-core/src/main/java/org/optaplanner/core/impl/heuristic/selector/entity/nearby/NearEntityNearbyEntitySelector.java#L87
3: https://github.com/kiegroup/optaplanner/blob/7.0.x/optaplanner-core/src/main/java/org/optaplanner/core/impl/heuristic/selector/common/nearby/NearbyDistanceMatrix.java#L35