Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2760

Fix generics specification in ExecutionService interface

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jBPM 4.4
    • jBPM 4.1, jBPM 4.2, jBPM 4.3
    • Runtime Engine
    • None

    Description

      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.

      Attachments

        Activity

          People

            rebody HuiSheng Xu (Inactive)
            gubespam Mike M (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: