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

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: