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

DMN runtime not using the kiecontainer root classloader to load classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 7.8.0.Final
    • 7.6.0.Final
    • dmn engine
    • None
    • 2018 Week 13-14, 2018 Week 15-16
    • NEW
    • 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.

      Attachments

        Activity

          People

            mmortari@redhat.com Matteo Mortari
            etirelli@redhat.com Edson Tirelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: