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

SolutionDescriptor does not support write-only properties (no getter) or when Solution class has indexed properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.0.Final
    • None
    • optaplanner-core
    • None

      When the Solution Class has IndexedProperties like "public Day getDay (int dayIndex)" the method processPropertyAnnotations() in SolutionDescriptor will get a NullPointerException on line 71, because for an IndexedPropertyDescriptor getReadMethod() will return null.

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              thorben.bochenek Thorben Bochenek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: