[jboss-jira] [JBoss JIRA] Created: (JBRULES-2836) Nested conditional expression (x?y:z) does not resolve variable binding

Wolfgang Laun (JIRA) jira-events at lists.jboss.org
Thu Dec 16 16:40:17 EST 2010


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: Mark Proctor
             Fix For: 5.2.0.M1


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: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list