Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1013

Error jitting a compareTo constraint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.4.0.Beta2
    • None
    • None
    • None
    • NEW
    • NEW

      When the implementation of the Comparable interface is not directly declared by a Class, but the Class implements another interface that transitively extends Comparable the jitting of a constraint doing a compareTo on that class fails with the following exception:

      Exception in thread "Thread-0" java.lang.NoSuchMethodError: java.time.LocalDateTime.compareTo(Ljava/time/LocalDateTimeI
              at ConditionEvaluator8566b06b2be943a7ba50f1700fa7b033.evaluate(Unknown Source)
              at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:248)
              at org.drools.core.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:204)
              at org.drools.core.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
      

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: