[jboss-jira] [JBoss JIRA] (JBRULES-3070) Incorrect relational operator usage accepted by compiler
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Wed Feb 1 05:26:04 EST 2012
[ https://issues.jboss.org/browse/JBRULES-3070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet updated JBRULES-3070:
--------------------------------------
Fix Version/s: 5.4.0.Beta3
(was: 5.4.0.Beta2)
> Incorrect relational operator usage accepted by compiler
> --------------------------------------------------------
>
> Key: JBRULES-3070
> URL: https://issues.jboss.org/browse/JBRULES-3070
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler (expert)
> Affects Versions: 5.2.0.CR1
> Reporter: Wolfgang Laun
> Assignee: Edson Tirelli
> Fix For: 5.4.0.Beta3
>
>
> Given
> class Person { int age; ... }
> the following pattern can be written
> Person( $name: name, age > 20 > 50 )
> And the pattern matches all Person facts with an age > 50.
> a) This should cause an error: a boolean (age > 20) cannot be compared with an integer (50)
> b) The result implies that some strange interpretation is in effect.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list