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

java.lang.Thread constructor's ThreadGroup argument documentation is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic
    • generic

      The specification of the "group" argument to the java.lang.Thread constructor
      is incorrect. It says that if group==null, "the new process belongs to the
      same group as the thread that is creating the new thread".

      In reality, if a SecurityManager is installed (as in appletviewer), if
      group==null, the new thread will belong to the group returned from the
      SecurityManager's getThreadGroup() method.

      This specification should be updated to match reality.

            asommere Alan Sommerer (Inactive)
            feckssunw Fred Ecks (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: