incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r821728 - /sling/trunk/bundles/commons/classloader/src/main/java/org/apache/sling/commons/classloader/impl/ClassLoaderFacade.java
Date Mon, 05 Oct 2009 09:12:36 GMT
Author: fmeschbe
Date: Mon Oct  5 09:12:36 2009
New Revision: 821728

URL: http://svn.apache.org/viewvc?rev=821728&view=rev
Log:
SLING-1135 need to overwrite the loadClass(String, boolean) method and not the
loadClass(String) method because only the former is called from "child" class
loaders in class loader hierarchies.

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=821728&r1=821727&r2=821728&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
Mon Oct  5 09:12:36 2009
@@ -77,10 +77,10 @@
         return null;
     }
 
-    /**
-     * @see java.lang.ClassLoader#loadClass(java.lang.String)
-     */
-    public Class<?> loadClass(String name) throws ClassNotFoundException {
+    @Override
+    protected synchronized Class<?> loadClass(String name, boolean resolve)
+            throws ClassNotFoundException {
+
         if ( !this.manager.isActive() ) {
             throw new RuntimeException("Dynamic class loader has already been deactivated.");
         }



Mime
View raw message