[jbpm-issues] [JBoss JIRA] Created: (JBPM-2760) Fix generics specification in ExecutionService interface
M M (JIRA)
jira-events at lists.jboss.org
Wed Jan 20 13:59:47 EST 2010
Fix generics specification in ExecutionService interface
--------------------------------------------------------
Key: JBPM-2760
URL: https://jira.jboss.org/jira/browse/JBPM-2760
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.1, jBPM 4.2, jBPM 4.3
Reporter: M M
Currently, some of the ExecutionService interface methods have parameters whose type is specified like
Map<String, Object> variables
However, when attempting to call these with methods with, say, an object of type Map<String,String>, the java compiler will not accept the object without some casting. To fix this, please change the interface to use the wildcard feature of Java 5 generics. This has already been done on other methods. The above would change to:
Map<String, ?> variables
Please also fix the same issue on TaskService (methods setVariables and completeTask). This change would be backwardly-compatible.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbpm-issues
mailing list