Commit 863d115f by Tom Tromey Committed by Tom Tromey

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
parent afa54b4c
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.
......
......@@ -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 ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment