[jboss-jira] [JBoss JIRA] Created: (JBRULES-2847) Generics and wildcards
Maxence Dewil (JIRA)
jira-events at lists.jboss.org
Thu Dec 23 10:41:17 EST 2010
Generics and wildcards
----------------------
Key: JBRULES-2847
URL: https://issues.jboss.org/browse/JBRULES-2847
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-api
Affects Versions: 5.2.0.M1
Reporter: Maxence Dewil
Assignee: Mark Proctor
Priority: Minor
Not really a bug but a proposal of improvement:
Example:
ksession.startProcess("myprocess", Collections.singletonMap("myParam", "paramValue"));
-> Then Eclipse displays an error: "The method startProcess(String, Map<String, Object>) in the type ProcessRuntime is not applicable for the arguments (String, Map<String,String>)"
The signature of startProcess should be instead:
ProcessInstance startProcess(String processId, Map<String, ?> parameters);
Wildcards documentation: http://download.oracle.com/javase/tutorial/extra/generics/wildcards.html
--
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