QDox

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

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: