borinquenkid commented on code in PR #15530:
URL: https://github.com/apache/grails-core/pull/15530#discussion_r3012037948


##########
grails-async/core/src/main/groovy/org/grails/async/transform/internal/DelegateAsyncTransformation.java:
##########
@@ -198,9 +199,9 @@ private static ClassNode alignReturnType(final ClassNode 
receiver, final ClassNo
 
     protected DelegateAsyncTransactionalMethodTransformer 
lookupAsyncTransactionalMethodTransformer() {
         try {
-            Class<?> transformerClass = 
getClass().getClassLoader().loadClass("org.grails.async.transform.internal.DefaultDelegateAsyncTransactionalMethodTransformer");
+            Class<?> transformerClass = 
Thread.currentThread().getContextClassLoader().loadClass("org.grails.async.transform.internal.DefaultDelegateAsyncTransactionalMethodTransformer");

Review Comment:
   Will revert 



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to