JDK-4082399 : java.lang.Thread.destroy() is not implemented in jdk1.2
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_2.4
  • CPU: generic,sparc
  • Submitted: 1997-09-29
  • Updated: 1999-01-15
  • Resolved: 1999-01-15
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
1.2.0 1.2fcsFixed
Related Reports
Relates :  
Description

Name: akC45999			Date: 09/29/97



The specification of Thread.destroy() method says: . 

This method is not implemented in Java 1.0.2.

But in jdk1.2M, it is still not implemented.

//File: @(#)destroy0101.java 1.1 97/09/26 
//Copyright 09/26/97 Sun Microsystems, Inc.  All Rights Reserved

//package javasoft.sqe.tests.api.java.lang.Thread.destroy0101;

import java.io.PrintStream;


public class destroy0101 {

  public static void main(String args[]) {

	Thread thr1=new Thread();
	try {
		thr1.destroy();
	} catch (Throwable e) {
		System.err.println("destroy() throws "+e.toString()+"("+e.getMessage()+")");
	}

  }

}


Running the test:
novo37% javac destroy0101.java
novo37% setenv CLASSPATH .
novo37% java destroy0101
destroy() throws java.lang.NoSuchMethodError(null)


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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.2fcs INTEGRATED IN: 1.2fcs
14-06-2004

EVALUATION This is a doc bug; the documentation for Thread.destory is too specific. Rather than saying "not implemented in jdk 1.02" it should say "not implemented." joshua.bloch@Eng 1997-11-09 In fact, arguably it's not a bug at all, but it's a point that could use clarification. joshua.bloch@Eng 1998-04-01 In the JLS, it says its not implemented through 1.1. In a future edition, that could be updated to say 1.x for the appropriate x. In any case, it isn't a bug - what it says is true. I'm changing this to doc, so that javadoc gets updated. gilad.bracha@eng 1998-04-03
03-04-1998