com.sun.source.tree.CaseTree doesn't extend StatementTree, but it seems it should

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 6u65, 7u21, 8, 9
    • Component/s: tools
    • None

      com.sun.source.tree.CaseTree is implemented by JCTree$JCCase which extends JCTree$JCStatement. All the other com.sun.source.tree.Tree's that are implemented by something that extends JCStatement extend from StatementTree, even ClassTree. Just CaseTree is the exception.

      It seems CaseTree should extends StatementTree so clients of the API don't need to make a special case for CaseTree.

            Assignee:
            Unassigned
            Reporter:
            Keimpe Bronkhorst (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: