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

The usage of permissions in Desktop API should be clarified

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P2 P2
    • 10
    • client-libs
    • None
    • minimal
    • Java API
    • SE

      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 {

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: