JDK-4217311 : int ThreadGroup.enumerate(Thread[]) should be Thread[] ThreadGroup.getChildTh...
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-03-04
  • Updated: 1999-05-06
  • Resolved: 1999-05-06
Related Reports
Duplicate :  
Duplicate :  
Description

Name: dbT83986			Date: 03/04/99


The method enumerate of the class java.lang.ThreadGroup 
to retreive the children-Thread/ThreadGroups should not 
take an array in which to store the information as an argument.

I can't see the reason for forcing the programme to handle one more
Thread[] or ThreadGroup[] object. A clean design for this
function would be imho 

java.lang.ThreadGroup[] getChildThreadGroups();
same for Thread[] getChildThreads();

probably I overlooked something..I would really like to know
if this happened, so please drop me a line.
(Review ID: 53094)
======================================================================