[jboss-jira] [JBoss JIRA] Created: (JBRULES-2268) Unknown Parser Error when spreading rule condition over multiple lines

Jeremy Ary (JIRA) jira-events at lists.jboss.org
Fri Sep 4 11:32:23 EDT 2009


Unknown Parser Error when spreading rule condition over multiple lines
----------------------------------------------------------------------

                 Key: JBRULES-2268
                 URL: https://jira.jboss.org/jira/browse/JBRULES-2268
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-compiler
    Affects Versions: 5.0.0.CR1
         Environment: XP-SP3, eclipse 3.4.2, 5.0.0.CR1
            Reporter: Jeremy Ary
            Assignee: Mark Proctor


Full message:
Unknown error while parsing. This is a bug. Please contact the Development team.

To recreate:
I broke a condition over multiple lines and mistakenly misgrouped my parentheses, leading to an unknown error while parsing:

{code}
rule "recreate bug"
	when
		Loan ( amount >= 175000 )
		&& ( program == "FHA" ) )
	then
		modify (queueList) { add (QueueIds.UWENTRY) }
end
{code}

When corrected to the following, the rule is parsed properly:

{code}
rule "recreate bug"
	when
		Loan ( ( amount >= 175000 )
		&& ( program == "FHA" ) )
	then
		modify (queueList) { add (QueueIds.UWENTRY) }
end
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list