[jboss-jira] [JBoss JIRA] (DROOLS-45) Compilation failure caused by a CCE when building a rule with a unification in the LHS
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Tue Feb 19 06:37:56 EST 2013
[ https://issues.jboss.org/browse/DROOLS-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-45.
-------------------------------
Fix Version/s: 5.6
6.0.0.Alpha1
Resolution: Done
> Compilation failure caused by a CCE when building a rule with a unification in the LHS
> --------------------------------------------------------------------------------------
>
> Key: DROOLS-45
> URL: https://issues.jboss.org/browse/DROOLS-45
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Mario Fusco
> Assignee: Mario Fusco
> Fix For: 5.6, 6.0.0.Alpha1
>
>
> The following DRL doesn't compile and in particular fails with a java.lang.ClassCastException: org.drools.rule.GroupElement cannot be cast to org.drools.rule.Pattern
> {code}
> declare A
> end
> declare B
> inner : A
> end
> rule "Init"
> when
> then
> A a = new A();
> insert( a );
> insert( new B( a ) );
> end
> rule "Check"
> when
> B( $in := inner )
> $in := A()
> then
> end
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list