[jboss-jira] [JBoss JIRA] Closed: (JBRULES-3118) Parser: import of class with "enum" in the FQN fails to parse

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Wed Jul 6 11:56:23 EDT 2011


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

Edson Tirelli closed JBRULES-3118.
----------------------------------



> Parser: import of class with "enum" in the FQN fails to parse
> -------------------------------------------------------------
>
>                 Key: JBRULES-3118
>                 URL: https://issues.jboss.org/browse/JBRULES-3118
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.2.0.Final
>            Reporter: Michael Anstis
>            Assignee: Edson Tirelli
>             Fix For: 5.2.1.Final, 5.3.0.Beta1
>
>
> The following DRL fails to compile, with error "Syntax error on token "enum", Identifier expected."
> package com.sample
>  
> import com.sample.DroolsTest.Message;
> //The "enum" sub-package causes the problem, not "Enum" class
> import org.apache.commons.lang.enum.Enum
> rule "Hello World"
>     when
>         m : Message( status == Message.HELLO, myMessage : message )
>     then
>         System.out.println( myMessage );
>         m.setMessage( "Goodbye cruel world" );
>         m.setStatus( Message.GOODBYE );
>         update( m );
> end
> rule "GoodBye"
>     when
>         Message( status == Message.GOODBYE, myMessage : message )
>     then
>         System.out.println( myMessage );
> end

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