[jboss-jira] [JBoss JIRA] (DROOLS-54) A query after an eval inside an OR causes a ClassCastException
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Tue Feb 26 06:49:56 EST 2013
Mario Fusco created DROOLS-54:
---------------------------------
Summary: A query after an eval inside an OR causes a ClassCastException
Key: DROOLS-54
URL: https://issues.jboss.org/browse/DROOLS-54
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Mario Fusco
Assignee: Mario Fusco
A query after an OR containing an eval on one of its branch, like in the following DRL, causes a ClassCastException
{code}
declare Holder
str : String
end
declare Bean
val : String
end
declare Mock end
rule "Init"
when
then
insert( new Bean( "xyz" ) );
insert( new Holder( "xyz" ) );
insert( new Mock() );
end
query mock( Mock $m ) $m := Mock() end
rule "Check"
when
$b : Bean( $t : val )
( Holder( $t ; ) or eal( $t.startsWith( "abc" ) ) )
mock( $m ; )
then
System.out.println( $m );
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