JDK-8054360 : Refine generification of javax.swing
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-08-05
  • Updated: 2019-01-15
  • Resolved: 2014-08-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b30Fixed
Related Reports
CSR :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Initial use of the generified version of swing (JDK-8043550) has revealed greater than expected source compatibility impact in some cases. In particular, there are many implementation of the interface javax.swing.tree.TreeNode which defined a more specialized version of the children method. To allow these implementations to still compile, the generification of children method should probably be changed from
    Enumeration<TreeNode> children()
to
    Enumeration<? extends TreeNode>
Comments
Review thread: http://mail.openjdk.java.net/pipermail/swing-dev/2014-August/003784.html
08-08-2014

See feedback on the swing changes: http://mail.openjdk.java.net/pipermail/jdk9-dev/2014-July/001042.html http://mail.openjdk.java.net/pipermail/swing-dev/2014-July/003766.html
05-08-2014