commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kohs...@apache.org
Subject svn commit: r232546 - /jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java
Date Sat, 13 Aug 2005 23:54:39 GMT
Author: kohsuke
Date: Sat Aug 13 16:54:33 2005
New Revision: 232546

URL: http://svn.apache.org/viewcvs?rev=232546&view=rev
Log:
fixed a bug

Modified:
    jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java

Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java?rev=232546&r1=232545&r2=232546&view=diff
==============================================================================
--- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java
(original)
+++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationClassLoader.java
Sat Aug 13 16:54:33 2005
@@ -78,11 +78,6 @@
      */
     private boolean ignoreBase = false;
 
-    /**
-     * The parent class loader, if one is given or can be determined.
-     */
-    private ClassLoader parent = null;
-
     /* The context to be used when loading classes and resources */
     private final AccessControlContext acc;
 
@@ -281,7 +276,7 @@
 
         if (isParentFirst(classname)) {
             try {
-                theClass = parent.loadClass(classname);
+                theClass = getParent().loadClass(classname);
                 log.debug("Class " + classname + " loaded from parent loader "
                     + "(parentFirst)");
             } catch (ClassNotFoundException cnfe) {
@@ -297,7 +292,7 @@
                 if (ignoreBase) {
                     throw cnfe;
                 }
-                theClass = parent.loadClass(classname);
+                theClass = getParent().loadClass(classname);
                 log.debug("Class " + classname + " loaded from parent loader");
             }
         }
@@ -421,7 +416,7 @@
         // try this class loader first, then parent
         URL url = findResource(name);
         if(url==null) {
-            url = parent.getResource(name);
+            url = getParent().getResource(name);
         }
         return url;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message