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

Jeremy Ary (JIRA) jira-events at lists.jboss.org
Fri Oct 1 15:05:40 EDT 2010


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

Jeremy Ary resolved JBRULES-2268.
---------------------------------

    Resolution: Incomplete Description


I'm suggesting this issue be closed out.  I revisited in attempts to recreate/fix some of my own bugs, and the typo causing the problem is right there in the syntax.  It breaks over a mis-matched pair of parens, so there's no issue with the code here to be addressed. When rule syntax is adhered to properly, this is not a problem.

> Unknown Parser Error when spreading rule condition over multiple lines
> ----------------------------------------------------------------------
>
>                 Key: JBRULES-2268
>                 URL: https://jira.jboss.org/browse/JBRULES-2268
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>    Affects Versions: 5.0.0.CR1, 5.0.1.FINAL
>         Environment: XP-SP3, eclipse 3.4.2, 5.0.0.CR1 (also tested at 5.0.1 at Edson's request)
>            Reporter: Jeremy Ary
>            Assignee: Edson Tirelli
>
> 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/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list