[jboss-jira] [JBoss JIRA] (DROOLS-1714) Accumulate compile issue with java dialect

Justin Goldsmith (JIRA) issues at jboss.org
Thu Aug 24 14:49:00 EDT 2017


Justin Goldsmith created DROOLS-1714:
----------------------------------------

             Summary: Accumulate compile issue with java dialect
                 Key: DROOLS-1714
                 URL: https://issues.jboss.org/browse/DROOLS-1714
             Project: Drools
          Issue Type: Bug
    Affects Versions: 7.2.0.Final
            Reporter: Justin Goldsmith
            Assignee: Edson Tirelli


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






--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list