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

Refactor TopLevel tree node.

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: