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

Refactor TopLevel tree node.

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • P3
    • Resolution: Fixed
    • None
    • 9
    • tools
    • b11
    • generic
    • generic
    • Verified

    Description

      Currently a TopLevel tree node has explicit members for the optional package name and any annos on it. A better impl would be to have a PackageDef node that bundles package name, doc comment and annos, and have PackageDef live in the List<JCTree> defs in the TopLevel. Some dancing would be required for interface compatibility in com.sun.source.tree.CompilationUnit, maybe using defauilt methods.

      Attachments

        Issue Links

          Activity

            People

              pgovereau Paul Govereau (Inactive)
              pgovereau Paul Govereau (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: