Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2661

Planning List Variable: Planning Clones of non-PlanningEntity/DeepPlanningClone list variables don't deep copy the list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.18.0.Final
    • 8.17.0.Final
    • None
    • None

      If I have the following Planning Entity:

       

      @PlanningEntity
      class MyEntity {
          @PlanningListVariable(valueRangeProviderRefs = "customerRange")
          private List<Integer> customerList;
      } 

      customerList is not planning cloned, only shallowly copied, meaning changes to the working solution affect it.

            cchianel Christopher Chianelli
            cchianel Christopher Chianelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: