[jboss-jira] [JBoss JIRA] Created: (JBRULES-3118) Parser: import of class called Enum fails to parse
Michael Anstis (JIRA)
jira-events at lists.jboss.org
Mon Jul 4 15:45:23 EDT 2011
Parser: import of class called Enum 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