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

Pretty-printing marker annotations add unnecessary parenthesis

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: