]
Edson Tirelli resolved JBRULES-3118.
------------------------------------
Fix Version/s: 5.2.1.Final
5.3.0.Beta1
Resolution: Rejected
Please reopen if I am missing anything.
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: