JDK-8058831 : Consider changing return type of DefaultMutableTreeNode.children
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2014-09-19
  • Updated: 2018-08-15
  • Resolved: 2018-08-15
Related Reports
Relates :  
Relates :  
Description
To improve source compatibility, after the initial generification of swing (), the return type of TreeNode.children was refined to allow covariant overrides (JDK-8054360). However, DefaultMutableTreeNode.children still returns Enumeration<TreeNode> rather than Enumeration<? extends TreeNode>. The latter would allow subclasses to return more precise information.

See the discussion thread:
http://mail.openjdk.java.net/pipermail/jdk9-dev/2014-September/001295.html

Comments
Closing as will not fix.
15-08-2018

One related regression was found in 9: https://bugs.openjdk.java.net/browse/JDK-8186648
23-08-2017