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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 6u65, 7u21, 8, 9
    • 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.

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

              Created:
              Updated: