2 * This test checks that we indeed invoke the UncaughtException method
3 * for dying threads and that we ignore exceptions in it.
5 * @author Godmar Back <gback@cs.utah.edu>
7 public class UncaughtException {
8 public static void main(String av[]) {
9 ThreadGroup g = new ThreadGroup("testgroup") {
11 public void uncaughtException(Thread t, Throwable e) {
15 ((Object)null).hashCode();
17 System.out.println("Success " + i + ".");
22 for (int i = 0; i < 3; i++) {
23 new Thread(g, new Integer(i).toString()) {
25 throw new RuntimeException();