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

Deprecate for removal com.sun.awt.SecurityWarning

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 11
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      Deprecating the API only expands the set of warning that can be generated for it.
    • Interface Kind:
      Java API
    • Scope:
      JDK

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: