inherit thread group from current thread

This commit is contained in:
Joel Dice 2009-08-10 07:46:59 -06:00
parent 97ea23e3bb
commit 5c72746d2c

View File

@ -38,7 +38,7 @@ public class Thread implements Runnable {
public Thread(ThreadGroup group, Runnable task, String name, long stackSize)
{
this.group = group;
this.group = (group == null ? Thread.currentThread().group : group);
this.task = task;
this.name = name;