]
Edson Tirelli resolved JBRULES-2836.
------------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
Fix Version/s: 5.2.0.CR1
(was: 5.2.0.M1)
Resolution: Done
Fixed with the new Parser.
Nested conditional expression (x?y:z) does not resolve variable
binding
-----------------------------------------------------------------------
Key: JBRULES-2836
URL:
https://issues.jboss.org/browse/JBRULES-2836
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler, drools-compiler (expert)
Affects Versions: 5.1.1.FINAL
Reporter: Wolfgang Laun
Assignee: Edson Tirelli
Fix For: 5.2.0.CR1
A return value restriction containing a nested conditional expression referencing two
previously bound variables is flagged as erroneous. (A similar, not nested, expression
referencing the same variables, is compiled and executed correctly.)
The provided DRL is sufficient for producing the error:
ule Compilation error : [Rule name='check sum']
appl/domain/Rule_check_sum_0.java (9:417) : $a2 cannot be resolved
--
This message is automatically generated by JIRA.
For more information on JIRA, see: