JDK-4960148 : (thread) Thread.destroy method is not implemented
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-11-26
  • Updated: 2017-05-16
  • Resolved: 2004-07-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b59Fixed
Related Reports
Relates :  
Relates :  
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 tiger-rc FIXED IN: tiger-rc INTEGRATED IN: tiger-b59 tiger-rc
03-08-2004

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
15-01-2004