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

@ValueRange annotation not inherited

XMLWordPrintable

      Planner throws "The planningEntityClass (...) has a PlanningVariable annotated property (...) that has no @ValueRange or @ValueRanges annotation." The situation is as follows:

      interface Something {
      
          @ValueRange(...)
          Value getValue()
      
      }
      
      @PlanningEntity
      class SomethingElse implements Something {
      
          @Override
          @PlanningVariable(variableListenerClasses = ...)
          public Value getValue();
      
      }
      

      I'm trying to share @ValueRange across implementations, but have a different shadow variable listener for each implementation. I could, of course, put the @ValueRange on every implementation, but that's too much code duplication.

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: