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

@PlanningId on primitive types such as int or long should work too

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.20.0.Final
    • 7.19.0.Final
    • optaplanner-core
    • None
    • 2019 Week 11-13
    • NEW
    • NEW

      java.lang.IllegalArgumentException: The class (class org.optaplanner.core.impl.testdata.domain.lookup.TestdataObjectPrimitiveIntId) has a member (private final int org.optaplanner.core.impl.testdata.domain.lookup.TestdataObjectPrimitiveIntId.id) with a PlanningId annotation that returns a type (int) that does not implement Comparable.
      Maybe use an Integer or String type instead.
      
      	at org.optaplanner.core.config.util.ConfigUtils.findPlanningIdMemberAccessor(ConfigUtils.java:424)
      	at org.optaplanner.core.impl.domain.lookup.LookUpStrategyResolver.lambda$determineLookUpStrategy$0(LookUpStrategyResolver.java:80)
      	at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
      	at org.optaplanner.core.impl.domain.lookup.LookUpStrategyResolver.determineLookUpStrategy(LookUpStrategyResolver.java:68)
      	at org.optaplanner.core.impl.domain.lookup.LookUpManager.addWorkingObject(LookUpManager.java:48)
      

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

                Created:
                Updated:
                Resolved: