Inaccessible and unused classes can be removed from java.desktop module

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 10
    • Component/s: client-libs
    • None
    • source, binary
    • low
    • Java API
    • JDK

      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.

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

              Created:
              Updated:
              Resolved: