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

The usage of permissions in Desktop API should be clarified

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P2
    • Resolution: Approved
    • Fix Version/s: 10
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Risk:
      minimal
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      Summary

      The Desktop API uses a number of permissions which were changed a few times, but the strict list of permissions is described in the specification. Until the full list of permissions will be clarified the spec should be relaxed.

      Problem

      The specification is too strict.

      Solution

      Add a notification about permissions to the header of the class.

      Specification

      src/java.desktop/share/classes/java/awt/Desktop.java
      
      + * <p> Note: the methods in the {@code Desktop} class may require
      + * platform-dependent permissions in addition to those described in the
      + * specification.
      + *
      ....
      public class Desktop {

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                serb Sergey Bylokhov
                Reviewed By:
                Philip Race
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: