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

Accumulate compile issue with java dialect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.3.0.Final
    • 7.2.0.Final
    • None
    • None

      when using java dialect in a accumulate, if there is a binding in the accumulate to a type that is not imported, you get a class cast error instead of the normal unable to resolve

      "object.java.lang.ClassCastException: org.drools.compiler.rule.builder.dialect.mvel.MVELAnalysisResult cannot be cast to org.drools.compiler.rule.builder.dialect.java.JavaAnalysisResult"

      Please see the following reproducer with three test cases that expect failure.
      2 of the tests have the expected failure, one does not.

      https://github.com/jgoldsmith613/drools-accumulate-bug

              mfusco@redhat.com Mario Fusco
              jgoldsmi@redhat.com Justin Goldsmith (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: