###@###.### 2001-08-23
Submitted on behalf of IBM. While they agree that the behaviour
described in Bug #4197876 is not a bug, they would like it
documented and have suggested that the following be added to the
J2SE API documentation for the Thread class:
When a thread is created it is automatically added to a thread group.
This allows threads to be run at a later stage without the need to
explicitly store a reference to them. Due to this a thread will not
be garbage collected until its run() method has been executed."
The owner of this API, Josh Bloch, agrees with this approach.
Submitted on behalf of IBM. While they agree that the behaviour
described in Bug #4197876 is not a bug, they would like it
documented and have suggested that the following be added to the
J2SE API documentation for the Thread class:
When a thread is created it is automatically added to a thread group.
This allows threads to be run at a later stage without the need to
explicitly store a reference to them. Due to this a thread will not
be garbage collected until its run() method has been executed."
The owner of this API, Josh Bloch, agrees with this approach.
- duplicates
-
JDK-4533087 If start method is never called on a thread, that thread is leaked
- Resolved