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

Consider changing return type of DefaultMutableTreeNode.children

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 9
    • Fix Version/s: tbd_major
    • Component/s: client-libs
    • Labels:
      None

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: