[jboss-jira] [JBoss JIRA] Updated: (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


     [ https://jira.jboss.org/jira/browse/JBRULES-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Ary updated JBRULES-2268:
--------------------------------

    Description: 
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:

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

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

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

  was:
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}



> 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:
> rule "recreate bug"
> 	when
> 		Loan ( amount >= 175000 )
> 		&& ( program == "FHA" ) )
> 	then
> 		modify (queueList) { add (QueueIds.UWENTRY) }
> end
> When corrected to the following, the rule is parsed properly:
> rule "recreate bug"
> 	when
> 		Loan ( ( amount >= 175000 )
> 		&& ( program == "FHA" ) )
> 	then
> 		modify (queueList) { add (QueueIds.UWENTRY) }
> end

-- 
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