[jboss-jira] [JBoss JIRA] Closed: (JBRULES-783) NoViableAltException when parsing eval rules

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Thu Jun 7 11:09:14 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-783?page=all ]

Edson Tirelli closed JBRULES-783.
---------------------------------

    Fix Version/s:  4.0.0.MR3
       Resolution: Done

Not possible to reproduce the problem in current trunk revision #12384.

As we did a major grammar rewrite, I guess the problem was solved during the rewrite. 

Added unit test anyway to avoid any possible regression.

Thanks for reporting and providing the test case.

> NoViableAltException when parsing eval rules
> --------------------------------------------
>
>                 Key: JBRULES-783
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-783
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Drl Parser/Builder
>    Affects Versions: 3.1-m1
>         Environment: VISTA 64bit
>            Reporter: John Howard
>         Assigned To: Edson Tirelli
>            Priority: Minor
>             Fix For:  4.0.0.MR3
>
>
> The following rules causes a NoViableAltException.  Although the exception is thrown the rule does appear to fire correctly
> package com.sample
> rule "Test Parse"
> 	
> 	when
> 		eval( 3==3 )
> 	then 
> 		System.out.println("OK");
> end
> NoViableAltException(-1!=[685:3: ( ( (LT|GT|LE|GE) shiftExpression )* | 'instanceof' typeSpec )]) in JavaParserParser
> If the eval line is replaced by eval( 3>=3 ) then no exception is thrown

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

        



More information about the jboss-jira mailing list