From 017116d060b46f795b2e33f4c83a7190521f460f Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 13 Aug 2009 09:02:32 -0600 Subject: [PATCH] add ThreadGroup(String) constructor --- classpath/java/lang/ThreadGroup.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classpath/java/lang/ThreadGroup.java b/classpath/java/lang/ThreadGroup.java index 9636b6a53a..077db46dca 100644 --- a/classpath/java/lang/ThreadGroup.java +++ b/classpath/java/lang/ThreadGroup.java @@ -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);