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

Deprecate for removal com.sun.awt.SecurityWarning

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 11
    • client-libs
    • None
    • behavioral
    • minimal
    • Deprecating the API only expands the set of warning that can be generated for it.
    • Java API
    • JDK

      Summary

      Deprecate for removal com.sun.awt.SecurityWarning.

      Problem

      The client code has an internal "com.sun.awt.SecurityWarning" class which at some point in the past, JDK 6u10, was used as a kind of "public" API. Starting jdk9 this class is accessible at runtime, but is NOT accessible at compile time or when the option "--illegal-access=deny" is specified.

      Solution

      The solutions is to deprecate this APi in jdk10 and remove later.

      Specification

      src/java.desktop/share/classes/com/sun/awt/SecurityWarning.java
      
        * <b>WARNING</b>: This class is an implementation detail and only meant
        * for limited use outside of the core platform. This API may change
        * drastically between update release, and it may even be
        * removed or be moved to some other packages or classes.
      + *
      + * @deprecated This class is deprecated, no replacement.
        */
      +@Deprecated(since = "11", forRemoval = true)
       public final class SecurityWarning {

      http://cr.openjdk.java.net/~serb/8205588/webrev.00/src/java.desktop/share/classes/com/sun/awt/SecurityWarning.java.udiff.html

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

              Created:
              Updated:
              Resolved: