[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2956) Runtime error when using non-boolean expression as a constraint
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Thu Sep 29 03:05:36 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-2956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Proctor updated JBRULES-2956:
----------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
> Runtime error when using non-boolean expression as a constraint
> ---------------------------------------------------------------
>
> Key: JBRULES-2956
> URL: https://issues.jboss.org/browse/JBRULES-2956
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler
> Affects Versions: 5.2.0.M2
> Reporter: Wolfgang Laun
> Assignee: Edson Tirelli
>
> declare Num
> num : Integer
> even : boolean
> end
> rule start
> when
> then
> insert( new Num( 42, true ) );
> end
> rule sumem
> when
> $n: Num( num, num + 1, eval(num + 1) )
> then
> end
> All of these constraints result in a RUNTIME error ar java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Boolean org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:97)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list