[
https://issues.jboss.org/browse/DROOLS-43?page=com.atlassian.jira.plugin....
]
Mario Fusco resolved DROOLS-43.
-------------------------------
Fix Version/s: 5.5.1.Final
6.0.0.Final
Resolution: Done
Binding makes parser accept non-boolean constraint
--------------------------------------------------
Key: DROOLS-43
URL:
https://issues.jboss.org/browse/DROOLS-43
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Mario Fusco
Assignee: Mario Fusco
Fix For: 5.5.1.Final, 6.0.0.Final
Below is a self-contained DRL which should not compile because the sum isn't a
boolean expression. (Note that omitting "$x:" results in the correct diagnostic
"predicate ... must be a boolean".)
{code}
declare Foo
a: double
b: double
end
rule what
when
$c: Foo( $x: a + b )
then
System.out.println( "foo: " + $c );
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