jdk/test/java/lang/Throwable/SuppressedExceptions.java
changeset 9513 1079ae7ada52
parent 9020 13b639abc930
child 17176 d7ee1e315fe7
--- a/jdk/test/java/lang/Throwable/SuppressedExceptions.java	Thu Apr 21 17:44:55 2011 -0400
+++ b/jdk/test/java/lang/Throwable/SuppressedExceptions.java	Thu Apr 21 15:55:59 2011 -0700
@@ -193,6 +193,7 @@
         // Make sure addSuppressed(null) throws an NPE
         try {
             t.addSuppressed(null);
+            throw new RuntimeException("NPE not thrown!");
         } catch(NullPointerException e) {
             ; // Expected
         }
@@ -204,7 +205,7 @@
 
     private static class NoSuppression extends Throwable {
         public NoSuppression(boolean enableSuppression) {
-            super("The medium.", null, enableSuppression);
+            super("The medium.", null, enableSuppression, true);
         }
     }
 }