markap14 commented on a change in pull request #4852: URL: https://github.com/apache/nifi/pull/4852#discussion_r585058932
########## File path: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/ExtensionBuilder.java ########## @@ -463,10 +524,12 @@ private ControllerServiceNode createGhostControllerServiceNode() { Thread.currentThread().setContextClassLoader(detectedClassLoader); final Object extensionInstance = rawClass.newInstance(); + final T cast = nodeType.cast(extensionInstance); + verifyControllerServiceReferences(cast, bundle.getClassLoader()); Review comment: Great catch ---------------------------------------------------------------- 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: us...@infra.apache.org