JDK-7118043 : Change TreeNode.children() return type from the Enumeration to Enumeration
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2011-12-05
  • Updated: 2017-06-07
  • Resolved: 2017-06-07
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.
Other
tbd_majorResolved
Related Reports
Duplicate :  
Description
This issue is rised from the JDK 8 Warnings Cleanup Day 
issue 7116950 Reduce number of warnings in swing

To reduce number of the JDk warning in the swing area it needs to change the TreeNode.children() return type from the Enumeration to Enumeration<TreeNode> and update the children() method usage from  Enumeration children = node.children(); to Enumeration<TreeNode> children = node.children();

It allows to change return type for some methods of the DefaultMutableTreeNode from Enumeration to Enumeration<TreeNode>
The request about API change should be sent.

Comments
Fixed in 8043550
07-06-2017

We've reviewed your bulk request (120 bugs) and are OK with deferring them to JDK 9. You can go ahead and update these to: - Set label to 8-defer-approved - FixVersion to 9 Thanks for doing a great job of summarizing the details for the bulk deferral for us! Kind regards, Mathias
19-09-2013

jdk8: SQE ok to defer!
19-09-2013

EVALUATION The suggested from the cr 7116950 patch is attached.
05-12-2011