Commit 2640ad11 by Tom Tromey Committed by Tom Tromey

initexc.java: New file.

	* libjava.lang/initexc.java: New file.
	* libjava.lang/initexc.out: New file.

From-SVN: r58761
parent 8cd4a359
2002-11-02 Tom Tromey <tromey@redhat.com>
* libjava.lang/initexc.java: New file.
* libjava.lang/initexc.out: New file.
2002-11-01 Tom Tromey <tromey@redhat.com> 2002-11-01 Tom Tromey <tromey@redhat.com>
For PR java/8415: For PR java/8415:
......
public class initexc
{
public static class fail
{
static
{
throw new NullPointerException("nope");
}
public static int val ()
{
return 23;
}
}
public static void main (String[] args)
{
try
{
System.out.println (fail.val ());
}
catch (ExceptionInInitializerError _)
{
// Ok.
}
try
{
System.out.println (fail.val ());
}
catch (NoClassDefFoundError _)
{
// Ok.
}
}
}
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