]
Mario Fusco resolved DROOLS-1714.
---------------------------------
Fix Version/s: 7.3.0.Final
Resolution: Done
Fixed by
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: Mario Fusco
Fix For: 7.3.0.Final
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