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

Pretty-printing marker annotations add unnecessary parenthesis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 12
    • None
    • tools
    • None
    • b24

    Description

      Pretty-printing the AST node for a marker annotation adds unnecessary parenthesis, e.g. `@A` becomes `@A()`.

      Fixing this would be a small step towards improving the fidelity of the AST, as discussed in JDK-8024098: "A nice goal/test would be to be able to take a source file, run it through parse() and analyze(), write out the tree, and get the same sequence of tokens found in the original file"

      Attachments

        Issue Links

          Activity

            People

              cushon Liam Miller-Cushon
              cushon Liam Miller-Cushon
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: