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

Detect cyclic shadow variables and fail fast

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 6.3.0.CR1
    • None
    • optaplanner-core
    • None
    • NEW
    • NEW

      Entity.getRock() depends on Entity.getScissors() which depends on Entity.getPaper() which depends on Entity.getRock() which depends on ...

      Cyclic shadow variables are always trouble and should not be allowed. They cause infinite loops and/or dead code. Once PLANNER-252 is implemented, those infinite loops might be silently broken leaving the domain in an invalid state, this detection will ensure that never happens, by failing fast.

              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: