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

FieldAccessingSolutionCloner does not clone inherited fields of Solution class.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.CR4
    • 6.0.0.CR1
    • optaplanner-core
    • None

      1. FieldAccessingSolutionCloner
      Does not clone inherited fields of Solution class.
      See Method isFieldAnEntityPropertyOnSolution() line 177:
      if (declaringClass == ((Class) solutionDescriptor.getSolutionClass()))
      should instead be something like
      if (declaringClass.isAssignableFrom((Class) solutionDescriptor.getSolutionClass()))

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              romanstumm Roman Stumm (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: