[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:27:56 EST 2013
Mario Fusco created DROOLS-45:
---------------------------------
Summary: 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
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