-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
1.2fcs
-
generic, sparc
-
generic, solaris_2.4
-
Not verified
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)
======================================================================
- relates to
-
JDK-4960148 (thread) Thread.destroy method is not implemented
-
- Resolved
-