initexc.java (fail): Static initializers must be able to complete normally.

* libjava.lang/initexc.java (fail): Static initializers must be
	able to complete normally.  From Eric Blake.

From-SVN: r58765
This commit is contained in:
Tom Tromey 2002-11-03 01:30:28 +00:00 committed by Tom Tromey
parent afa54b4c09
commit 863d115f33
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2002-11-02 Tom Tromey <tromey@redhat.com> 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.java: New file.
* libjava.lang/initexc.out: New file. * libjava.lang/initexc.out: New file.

View File

@ -4,7 +4,9 @@ public class initexc
{ {
static static
{ {
throw new NullPointerException("nope"); // Static initializers must be able to complete normally.
if (true)
throw new NullPointerException("nope");
} }
public static int val () public static int val ()