QDox
  1. QDox
  2. QDOX-165

ParseException on enum members with annotations that have values

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.9.1
    • Fix Version/s: 1.9.2
    • Component/s: Parser
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      The following code snippet fails to parse

      package test;
      
      public enum MyEnum
      {
      
          @Deprecated()
          SOME_VALUE,
      
          @SuppressWarnings("all")
          ANOTHER_VALUE;
      
      }
      
      com.thoughtworks.qdox.parser.ParseException: syntax error @[6,17] in src/main/java/test/MyEnum.java
              at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:999)
              at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1305)
              at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:980)
              at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:330)
      

        Issue Links

          Activity

          Hide
          Benjamin Bentmann added a comment -

          Attached a test project.

          Show
          Benjamin Bentmann added a comment - Attached a test project.
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Attachment QDOX-165.zip [ 42252 ]
          Benjamin Bentmann made changes -
          Link This issue is depended upon by MPLUGIN-151 [ MPLUGIN-151 ]
          Hide
          Robert Scholte added a comment -

          duplicate of QDOX-162

          Show
          Robert Scholte added a comment - duplicate of QDOX-162
          Robert Scholte made changes -
          Assignee Robert Scholte [ rfscholte ]
          Resolution Duplicate [ 3 ]
          Fix Version/s 1.10 [ 15020 ]
          Status Open [ 1 ] Closed [ 6 ]
          Paul Hammant made changes -
          Resolution Duplicate [ 3 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Paul Hammant made changes -
          Resolution Duplicate [ 3 ]
          Fix Version/s 1.10 [ 15020 ]
          Fix Version/s 1.9.2 [ 15471 ]
          Status Reopened [ 4 ] Closed [ 6 ]

            People

            • Assignee:
              Robert Scholte
              Reporter:
              Benjamin Bentmann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: