-
Bug
-
Resolution: Won't Do
-
Critical
-
None
-
6.1.0
-
None
Reproducer based on optaplanner unit tests:
@Test
public void getPlanningValues() {
TestdataValue v1 = new TestdataValue("1");
TestdataValue v2 = new TestdataValue("2");
TestdataValue v3 = new TestdataValue("3");
TestdataMultiVarEntity a = new TestdataMultiVarEntity("a", v1, v2, null);
TestdataMultiVarEntity b = new TestdataMultiVarEntity("b", v1, v3, null);
EntityDescriptor entityDescriptor = TestdataMultiVarEntity.buildEntityDescriptor();
SwapMove move = new SwapMove(entityDescriptor.getGenuineVariableDescriptors(), a, b);
List<Object> values = (List<Object>) move.getPlanningValues();
}
Actual results: "values" array contains
{null, null, 1, 1, 2, 3}, where "1" is redundant.
Expected results: shoudl contains only
{null, 1, 2, 3}Additional info: This issue corresponds with bigger problem: https://issues.jboss.org/browse/PLANNER-278