Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2847

Generics and wildcards

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 5.2.0.M1
    • drools-api
    • None

    Description

      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

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            maxence.dewil Maxence Dewil (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Archived:

              PagerDuty