OSDN Git Service

* libjava.lang/initexc.java (fail): Static initializers must be
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Nov 2002 01:30:28 +0000 (01:30 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 3 Nov 2002 01:30:28 +0000 (01:30 +0000)
able to complete normally.  From Eric Blake.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58765 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.lang/initexc.java

index 64f59c5..fc5627b 100644 (file)
@@ -1,5 +1,8 @@
 2002-11-02  Tom Tromey  <tromey@redhat.com>
 
+       * libjava.lang/initexc.java (fail): Static initializers must be
+       able to complete normally.  From Eric Blake.
+
        * libjava.lang/initexc.java: New file.
        * libjava.lang/initexc.out: New file.
 
index 968009e..eda24ab 100644 (file)
@@ -4,7 +4,9 @@ public class initexc
   {
     static
     {
-      throw new NullPointerException("nope");
+      // Static initializers must be able to complete normally.
+      if (true)
+       throw new NullPointerException("nope");
     }
 
     public static int val ()