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

Native threads attached to 1.2 vm do not have names by default

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 1.2.0
    • 1.2.0
    • hotspot
    • 1.2fcs
    • sparc
    • solaris_2.6
    • Not verified

    Description

      Using JNI in jdk1.2, if a native thread does not set a thread name using
      the interface, after it attaches to a VM, and calls
      System.getCurrentThread().getName()
      the result is an empty string (not returning null).

      This is not correct, since threads should have a default name/identifier
      even if users do not specify them before attaching to the vm. Also,
      even if this is the new behavior in 1.2, it should return null rather
      then an empty string when trying to get the thread name.

      Attachments

        Activity

          People

            sliangsunw Sheng Liang (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: