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

Refine generification of javax.swing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • client-libs
    • 9
    • b30

        Initial use of the generified version of swing (JDK-8043550) has revealed greater than expected source compatibility impact in some cases. In particular, there are many implementation of the interface javax.swing.tree.TreeNode which defined a more specialized version of the children method. To allow these implementations to still compile, the generification of children method should probably be changed from
            Enumeration<TreeNode> children()
        to
            Enumeration<? extends TreeNode>

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

                Created:
                Updated:
                Resolved: