add ThreadGroup(String) constructor

This commit is contained in:
Joel Dice 2009-08-13 09:02:32 -06:00
parent 0d7a2fa2bc
commit 017116d060

View File

@ -19,6 +19,10 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
this.name = name;
}
public ThreadGroup(String name) {
this(Thread.currentThread().getThreadGroup(), name);
}
public void uncaughtException(Thread t, Throwable e) {
if (parent != null) {
parent.uncaughtException(t, e);