geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1483537 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java
Date Thu, 16 May 2013 19:56:42 GMT
Author: dblevins
Date: Thu May 16 19:56:42 2013
New Revision: 1483537

URL: http://svn.apache.org/r1483537
Log:
Tweak to XBEAN-243 to skip the ExtClassLoader and not bring in native libraries
Better fix

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java?rev=1483537&r1=1483536&r2=1483537&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassLoaders.java
Thu May 16 19:56:42 2013
@@ -31,7 +31,7 @@ public final class ClassLoaders {
     private static final ClassLoader SYSTEM = ClassLoader.getSystemClassLoader();
 
     public static Set<URL> findUrls(final ClassLoader classLoader) throws IOException
{
-        if (classLoader == null || classLoader.getClass().getName().equals("sun.misc.Launcher$ExtClassLoader"))
{
+        if (classLoader == null || (SYSTEM.getParent() != null && classLoader ==
SYSTEM.getParent())) {
             return Collections.emptySet();
         }
 



Mime
View raw message