harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r481324 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/Class.java
Date Fri, 01 Dec 2006 17:58:30 GMT
Author: apetrenko
Date: Fri Dec  1 09:58:29 2006
New Revision: 481324

URL: http://svn.apache.org/viewvc?view=rev&rev=481324
Log:
Patch for HARMONY-887 "[classlib][core][drlvm] compatibility: Class.forName(null, true, cLoader)
throws ClassNotFoundException on DRLVM and NPE on RI"

Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/Class.java

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/Class.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/Class.java?view=diff&rev=481324&r1=481323&r2=481324
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/Class.java
(original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/kernel_classes/javasrc/java/lang/Class.java
Fri Dec  1 09:58:29 2006
@@ -130,6 +130,9 @@
      */
     public static Class<?> forName(String name, boolean initialize,
             ClassLoader classLoader) throws ClassNotFoundException {
+        if (name == null)
+            throw new NullPointerException();
+            
         Class clazz = null;
         int i = 0;
         try {



Mime
View raw message