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

The "com.sun.awt.AWTUtilities" class can be dropped

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 11
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      source, binary
    • Compatibility Risk:
      low
    • Compatibility Risk Description:
      Hide
      We do know that this was documented (at least via examples
      on sun web pages) and picked up by some code, but there
      are now public replacements for all of these, the last of which
      was added in 9.
      Show
      We do know that this was documented (at least via examples on sun web pages) and picked up by some code, but there are now public replacements for all of these, the last of which was added in 9.
    • Interface Kind:
      Java API, Other
    • Scope:
      JDK

      Description

      Summary

      The client code has a "com.sun.awt.AWTUtilities" class which at some point in the past, JDK 6u10, was used as a kind of "public" API. Currently all its functionality is already provided by the public API, so this class can be removed in JDK 11.

      Problem

      This class was deprecated forRemoval=true in JDK 10 (JDK-8187253). This class is unused in the JDK and can be removed.

      Solution

      The solutions is to remove:

       src/java.desktop/share/classes/com/sun/awt/AWTUtilities.java

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serb Sergey Bylokhov
              Reporter:
              serb Sergey Bylokhov
              Reviewed By:
              Alan Bateman, Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: