[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 07:03:56 EST 2013
[ https://issues.jboss.org/browse/DROOLS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-54.
-------------------------------
Fix Version/s: 5.6
6.0.0.Alpha1
Resolution: Done
> 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
> Fix For: 5.6, 6.0.0.Alpha1
>
>
> 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