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

(thread) Thread.destroy method is not implemented

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b59
    • CPU:
      generic
    • OS:
      generic

      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.


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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              martin Martin Buchholz
              Reporter:
              serjsunw Serj Serj (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: