]
Huisheng Xu resolved JBPM-2760.
-------------------------------
Fix Version/s: jBPM 4.4
Resolution: Done
Fix generics specification in ExecutionService interface
--------------------------------------------------------
Key: JBPM-2760
URL:
https://jira.jboss.org/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
Assignee: Huisheng Xu
Fix For: jBPM 4.4
Attachments: JBPM-2760.patch
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: