[jboss-jira] [JBoss JIRA] Updated: (JBRULES-3118) Parser: import of class with "enum" in the FQN fails to parse
Michael Anstis (JIRA)
jira-events at lists.jboss.org
Mon Jul 4 15:54:23 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Anstis updated JBRULES-3118:
------------------------------------
Summary: Parser: import of class with "enum" in the FQN fails to parse (was: Parser: import of class called Enum fails to parse)
> 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: Mark Proctor
>
> 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