JDK-8186003 : Inaccessible and unused classes can be removed from java.desktop module
  • Type: CSR
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 10
  • Submitted: 2017-08-09
  • Updated: 2017-08-16
  • Resolved: 2017-08-16
Related Reports
CSR :  
Description
Summary
-------

The Swing library has a number of internal classes which at some point in the past were used as a kind of "public" API.

Problem
-------

The list of files which are unused in the Swing, but exists only for compatibility.

    The look and feels:
        apple/laf/AquaLookAndFeel.java
        - was replaced by the com.apple.laf.AquaLookAndFeel.java and can be used
              * indirectly via UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              * or via UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel");
        com/sun/java/swing/plaf/nimbus/NimbusLookAndFeel.java
        - was replaced by the javax.swing.plaf.nimbus.NimbusLookAndFeel.java

     Other classes:
        com/sun/java/swing/Painter.java
        com/sun/java/swing/plaf/nimbus/AbstractRegionPainter.java 
        com/apple/eawt/ApplicationAdapter.java
        com/apple/eawt/ApplicationEvent.java
        com/apple/eawt/ApplicationListener.java

The link for convenience
http://cr.openjdk.java.net/~serb/8185683/webrev.00

Solution
--------

The solution is to remove all these files.

Specification
-------------

There are no any changes in the public API specification.

Comments
I'm approved this request contingent on a release note being written for the base issue.
16-08-2017

Adjusting settings of compatibility fields.
16-08-2017