mattyb149 commented on a change in pull request #4376:
URL: https://github.com/apache/nifi/pull/4376#discussion_r450919766



##########
File path: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-nar-utils/src/main/java/org/apache/nifi/nar/NarThreadContextClassLoader.java
##########
@@ -192,7 +192,7 @@ public static NarThreadContextClassLoader getInstance() {
     public static <T> T createInstance(final ExtensionManager 
extensionManager, final String implementationClassName, final Class<T> 
typeDefinition, final NiFiProperties nifiProperties)
             throws InstantiationException, IllegalAccessException, 
ClassNotFoundException {
         final ClassLoader originalClassLoader = 
Thread.currentThread().getContextClassLoader();
-        
Thread.currentThread().setContextClassLoader(NarThreadContextClassLoader.getInstance());
+        
//Thread.currentThread().setContextClassLoader(NarThreadContextClassLoader.getInstance());

Review comment:
       It's on purpose, but I'll remove the dead code. We want the NAR's 
classloader to be used to load things, not the singleton




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to