harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r482577 - /harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ClassTestForName.java
Date Tue, 05 Dec 2006 10:35:04 GMT
Author: apetrenko
Date: Tue Dec  5 02:35:03 2006
New Revision: 482577

URL: http://svn.apache.org/viewvc?view=rev&rev=482577
Log:
Regression test for HARMONY-887

Modified:
    harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ClassTestForName.java

Modified: harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ClassTestForName.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ClassTestForName.java?view=diff&rev=482577&r1=482576&r2=482577
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ClassTestForName.java (original)
+++ harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ClassTestForName.java Tue Dec 
5 02:35:03 2006
@@ -145,6 +145,17 @@
         }
     }
     
+    
+    /**
+     * Regression test for HARMONY-887
+     */
+    public void testHARMONY887() throws ClassNotFoundException {
+        try {
+            Class.forName(null, true, ClassLoader.getSystemClassLoader());
+        } catch (NullPointerException npe) {return;}
+        fail("NullPointerException exception expected");
+    }
+    
     /**
      * Helper class.
      */



Mime
View raw message