geronimo-xbean-scm mailing list archives

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

URL: http://svn.apache.org/r1483514
Log:
Tweak to XBEAN-243 to skip the ExtClassLoader and not bring in native libraries
Not the best fix as it's Sun VM specific.  Need to verify and create a better one.

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=1483514&r1=1483513&r2=1483514&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:14: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) {
+        if (classLoader == null || classLoader.getClass().getName().equals("sun.misc.Launcher$ExtClassLoader"))
{
             return Collections.emptySet();
         }
 



Mime
View raw message