]
Edson Tirelli commented on JBRULES-503:
---------------------------------------
Can you please clarify the issue? Is there a problem with generics or is it just a problem
of showing compilation errors to the user?
Whatever it is, we need to fix, but just for me to understand and to fix the exact problem
you are seeing.
Thanks.
Edson
Compiler Throwing an exception on generics
------------------------------------------
Key: JBRULES-503
URL:
http://jira.jboss.com/jira/browse/JBRULES-503
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 3.0.4
Environment: JBoss Rules 3.0.4, antlr-2.7.6.jar, antlr-3.0ea8.jar,
commons-jci-core-1.0-406301.jar, commons-jci-eclipse-3.2.0.666.jar, core-3.2.0.666.jar,
drools-compiler-3.0.4.jar, drools-jsr94-3.0.4.jar, jsr94-1.1.jar, stringtemplate2.3b6.jar
Reporter: jasonc411
Assigned To: Edson Tirelli
#created on: Sep 15, 2006
package com.ca.data.dsrules
#list any import classes here.
import com.ca.data.model.base.DataSourceEnum;
import com.ca.data.model.issuer.Issuer;
import java.util.ArrayList;
import java.util.List;
import com.ca.data.model.Data;
import com.ca.data.datasubs.utils.JMSServiceLocator;
import com.ca.data.jms.JMSTextMessageSender;
function void save(Issuer issuer){
JMSTextMessageSender cleanQueue =
JMSServiceLocator.getTextSender("SomeServer", "SomeTopic");
Data data = new Data();
List<Issuer> myIssuers = new ArrayList<Issuer>();
myIssuers.add(issuer);
Data.setIssuerList(myIssuers);
cleanQueue.simpleSend(issuer);
}
rule "Persist Validated Data"
agenda-group "Data In"
no loop
salience 1
when
issuer : Issuer(dataSource == DataSourceEnum.SomeSource, id != -1)
then
System.out.println("Validated");
save(issuer);
end
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: