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

Wrong text in IllegalArgumentException in ScoreDirectorFactoryConfig

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Trivial
    • 6.4.0.Beta1
    • None
    • optaplanner-core
    • None
    • Hide

      take a standard HardSoftScore example and configure <scoreDefinitionType>HARD_MEDIUM_SOFT</scoreDefinitionType>
      in the scoreDirectorFactory

      Show
      take a standard HardSoftScore example and configure <scoreDefinitionType>HARD_MEDIUM_SOFT</scoreDefinitionType> in the scoreDirectorFactory
    • NEW
    • NEW

    Description

      when the scoreDefinitionType does not match/is not compatible to the solutionScore class the exception says it is an illegal argument because the classes are assignable.

      There seems to be a "not" missing in the text.

      example exception output from my test:

      java.lang.IllegalArgumentException: The solutionScoreClass (class org.optaplanner.core.api.score.buildin.hardmediumsoft.HardMediumSoftScore) of solutionClass (class xxx.ResourcePlanningSolution) is the same or a superclass as the scoreDefinition's scoreClass (class org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore).

      Attachments

        Activity

          People

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            empting_jira Arnd Empting (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: