United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4960148 (thread) Thread.destroy method is not implemented
JDK-4960148 : (thread) Thread.destroy method is not implemented

Details
Type:
Bug
Submit Date:
2003-11-26
Status:
Resolved
Updated Date:
2004-07-16
Project Name:
JDK
Resolved Date:
2004-07-16
Component:
core-libs
OS:
generic
Sub-Component:
java.lang
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (b59)

Related Reports
Relates:
Relates:

Sub Tasks

Description

Name: skR10005			Date: 11/26/2003


The following JCK test is excluded with the bug 4226286 against test:
api/java_lang/Thread/index.html#destroy[Thread2301]

The API specification of method Thread.destroy reads:
  "Destroys this thread, without any cleanup. 
   Any monitors it has locked remain locked. 
   (This method is not implemented.)"

Current RI implementation simply throws NoSuchMethodError.
This method should be implemented or removed from API specification.

This bug is filed to exclude old test with bug against RI because the test
follows API specification and is valid. So it cannot be excluded with the
bug against test.

Although API psecification contains the notice that
  "(This method is not implemented.)"
it looks like this is not enough.

API specification normally specifies method behavior specification
for all conformant implementations.
But this phrase relates to just one (reference) implementation.

 From compatibility point of view some java implementation may
implement this method and java application may work properly on
this platform and not work on RI.

Moreover this method is not deprecated and probably 
it will be implemented in future.

So, my opinion is that this method should be implemented or 
removed/deprecated from the spec.


======================================================================

                                    

Comments
EVALUATION

This method will be deprecated as part of the changes for
4965960: Bring JSR-166 up to date with Public Review Jan 2004

###@###.### 2004-01-15
                                     
2004-01-15
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger-beta2
tiger-rc

FIXED IN:
tiger-rc

INTEGRATED IN:
tiger-b59
tiger-rc


                                     
2004-08-03



Hardware and Software, Engineered to Work Together