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

Doc for modifyThreadGroup permission is incomplete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • docs
    • beta2
    • generic
    • generic



      Name: boT120536 Date: 01/03/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      The permissions documentation at
      http://java.sun.com/j2se/1.3/docs/guide/security/permissions.html contains two
      sections that each document the list of permissions, and what they're for:
      (1) "Permission Descriptions and Risks" and (2) "Methods and the Permissions
      They Require".

      Regarding the RuntimePermission "modifyThreadGroup": The first section says
      that this affects only the modification of thread groups (as the name implies).
      The second section indicates that this also affects creating threads (since it
      lists all the Thread constructors). It may be logical that creating a thread
      must modify a thread group, but it's certainly not obvious. (At first blush,
      you'd expect that the "modifyThread" permission would control thread creation.)

      The first section (Permission Descriptions and Risks) should explicitly state
      that modifyThreadGroup controls the creation of threads.
      (Review ID: 109664)
      ======================================================================

            duke J. Duke
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: