Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2441

DMN runtime not using the kiecontainer root classloader to load classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 7.6.0.Final
    • Fix Version/s: 7.8.0.Final
    • Component/s: dmn engine
    • Labels:
      None
    • Sprint:
      2018 Week 13-14, 2018 Week 15-16
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      The FunctionDefNode is not using the kie container root classloader to load classes. I even added a comment for that, just a shame comments are not executable:

      https://github.com/kiegroup/drools/blob/master/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionDefNode.java#L98-L99

      FunctionDefNode.java

                              // might need to explicitly use a classloader here
                              Class<?> clazz = Class.forName( clazzName );
      

      To reproduce the problem, create a java class with a static method, add it to the kjar, create a DMN model that invokes that model, and try to execute.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tari_manga Matteo Mortari
                Reporter:
                tirelli Edson Tirelli
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: