radcortez closed pull request #1: Fix issue with ClassConverter loading Class 
when Class is not in the same Classloader.
URL: https://github.com/apache/geronimo-config/pull/1
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/impl/src/main/java/org/apache/geronimo/config/converters/ClassConverter.java 
b/impl/src/main/java/org/apache/geronimo/config/converters/ClassConverter.java
index cfd13fa..81d70ee 100644
--- 
a/impl/src/main/java/org/apache/geronimo/config/converters/ClassConverter.java
+++ 
b/impl/src/main/java/org/apache/geronimo/config/converters/ClassConverter.java
@@ -33,7 +33,7 @@ public Class convert(String value) {
             return null;
         }
         try {
-            return Class.forName(value);
+            return Class.forName(value, true, 
Thread.currentThread().getContextClassLoader());
         } catch (ClassNotFoundException e) {
             throw new IllegalArgumentException(e);
         }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

Reply via email to