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

Hibernate persistence: ArrayIndexOutOfBoundsException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.23.0.Final
    • None

      BednableScore: hardLevelsSize = 1, softLevelsSize = 1
      When hibernate deserializes it using BendableScoreHibernateType, it uses the method getPropertyValues() to extract the values.
      The values for propertyIndex argument will be: 0 for initScore, 1 for soft1Score, 2 for soft0Score.
      However, levelNumbers will be an array of two elements. Resulting in an AIOOB exception when Hibernate tries to access the soft0Score from levelNumbers[2]

              mtalluzi@redhat.com Musa Talluzi (Inactive)
              mtalluzi@redhat.com Musa Talluzi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: