JDK-8217035 : Further refine generification of javax.swing
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 13
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2019-01-15
  • Updated: 2021-04-07
  • Resolved: 2021-04-07
Related Reports
Relates :  
Relates :  
Relates :  
Description
During the analysis of JDK-8186648, it was noted that the various classes implementing the TreeNode interface should have their children methods return Enumeration<? extends TreeNode> rather than Enumeration<TreeNode> (JDK-8054360).
Comments
Implementors of TreeNode in the JDK with defined children methods include: javax.swing.text.AbstractDocument.AbstractElement abstract Enumeration<TreeNode> children() javax.swing.text.AbstractDocument.AbstractElement javax.swing.text.AbstractDocument.BranchElement (concrete class) javax.swing.text.AbstractDocument.AbstractElement javax.swing.text.AbstractDocument.LeafElement (concrete class) javax.swing.tree.DefaultMutableTreeNode javax.swing.tree.DefaultMutableTreeNode javax.swing.JTree.DynamicUtilTreeNode
16-01-2019