Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4082399

java.lang.Thread.destroy() is not implemented in jdk1.2

XMLWordPrintable

    • 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)


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

            asommere Alan Sommerer (Inactive)
            rfqsunw Rfq Rfq (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: