incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r883734 - /sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/ClassLoaderFacade.java
Date Tue, 24 Nov 2009 15:49:13 GMT
Author: cziegeler
Date: Tue Nov 24 15:49:13 2009
New Revision: 883734

URL: http://svn.apache.org/viewvc?rev=883734&view=rev
Log:
Just pass missing class into exception constructor.

Modified:
    sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/ClassLoaderFacade.java

Modified: sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/ClassLoaderFacade.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/ClassLoaderFacade.java?rev=883734&r1=883733&r2=883734&view=diff
==============================================================================
--- sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/ClassLoaderFacade.java
(original)
+++ sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/ClassLoaderFacade.java
Tue Nov 24 15:49:13 2009
@@ -109,7 +109,7 @@
     throws ClassNotFoundException {
         if ( !this.manager.isActive() ) {
             logger.error("Dynamic class loader has already been deactivated.");
-            throw new ClassNotFoundException("Class not found: " + name);
+            throw new ClassNotFoundException(name);
         }
         final ClassLoader[] loaders = manager.getDynamicClassLoaders();
         for(final ClassLoader cl : loaders) {
@@ -124,6 +124,6 @@
                 }
             }
         }
-        throw new ClassNotFoundException("Class not found: " + name);
+        throw new ClassNotFoundException(name);
     }
 }



Mime
View raw message