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

Gizmo Solution Cloning: Implementations of @PlanningEntity interfaces are not cloned

    XMLWordPrintable

Details

    • NEW
    • NEW

    Description

      Given the following interface:

       

      @PlanningEntity
      public interface InterfaceEntity {
          @PlanningVariable(valueRangeProviderRefs = "valueRange)
          Value getValue();
      
          void setValue(Value value);
      }

      and implementation without `@PlanningEntity`:

       

      public class ActualEntity {
          // ...
      }
      

      ActualEntity instances will not be cloned when GIZMO is used, resulting in cloning corruption.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: