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

Obsolete reference to checking permissions in java.awt.Composite

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 24
    • client-libs
    • None
    • 2d
    • behavioral
    • minimal
    • doc update.
    • Java API
    • SE

      Summary

      Remove obsolete text in java.awt.Composite describing the need for permissions.

      Problem

      JEP 486 - Permanently Disable the SecurityManager - obsoleted all permission checks, but the class doc for java.awt.Composite still describes permission checks that might be needed.

      Solution

      Delete the obsolete class doc.

      Specification

      java/awt/Composite.java :

      remove this text :

      - * Since this interface must expose the contents of pixels on the
      - * target device or image to potentially arbitrary code, the use of
      - * custom objects which implement this interface when rendering directly
      - * to a screen device is governed by the {@code readDisplayPixels}
      - * {@link AWTPermission}.  The permission check will occur when such
      - * a custom object is passed to the {@code setComposite} method
      - * of a {@code Graphics2D} retrieved from a {@link Component}.
      

            prr Philip Race
            prr Philip Race
            Alexander Zuev, Alexander Zvegintsev, Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: