harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r797376 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
Date Fri, 24 Jul 2009 09:05:41 GMT
Author: tonywu
Date: Fri Jul 24 09:05:41 2009
New Revision: 797376

URL: http://svn.apache.org/viewvc?rev=797376&view=rev
Log:
According to spec, an invocation to ClassLoader.loadClass will call findLoadedClass(String)
first, before calling findClass(String).

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java?rev=797376&r1=797375&r2=797376&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLClassLoader.java
Fri Jul 24 09:05:41 2009
@@ -1196,10 +1196,6 @@
     }
 
     Class<?> findClassImpl(String className) {
-        Class<?> loadedClass = findLoadedClass(className);
-        if (null != loadedClass) {
-            return loadedClass;
-        }
         String partialName = className.replace('.', '/');
         final String classFileName = new StringBuilder(partialName).append(".class").toString();
//$NON-NLS-1$
         String packageName = null;



Mime
View raw message