Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8058831

Consider changing return type of DefaultMutableTreeNode.children

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 9
    • client-libs
    • None

      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

            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: