QDox
  1. QDox
  2. QDOX-142

Parsing of annotations with empty parameter lists fails

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.6.3
    • Fix Version/s: 1.8
    • Component/s: Parser
    • Labels:
      None
    • Environment:
      Java 1.5.0_11
    • Number of attachments :
      0

      Description

      Devlarations like

      @MyAnnotation()
      public class MyClass {}

      compiles with Javac etc, but parsing fails with syntax error.
      (The syntax withtout parentheses

      @MyAnnotation
      public class MyClass {}

      works though).

      Ironically, the top most example is the result of calling toString on an Annotation object.

        Activity

        Hide
        Robert Scholte added a comment -

        added example as test, but doesn't fail (anymore). Issue closed

        Show
        Robert Scholte added a comment - added example as test, but doesn't fail (anymore). Issue closed
        Robert Scholte made changes -
        Field Original Value New Value
        Fix Version/s 1.8 [ 14826 ]
        Resolution Cannot Reproduce [ 5 ]
        Assignee Robert Scholte [ rfscholte ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Daniel Bakkelund
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: