QDox
  1. QDox
  2. QDOX-158

ParseException when using annotations in methods

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9.1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Activity

      Hide
      Vincent Siveton added a comment -

      Here is test case for the following:

          /**
           * javadoc
           */
          @MyFunction.MyInterface( prefix1 = "abc", prefix2 = "abc" )
          public static Object myMethod( String text )
      

      Parsing error:

      Exception in thread "main" com.thoughtworks.qdox.parser.ParseException: syntax error @[74,45] in file:...TestQDOX158.java
      	at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:987)
      	at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1293)
      	at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:968)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:317)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:349)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:345)
      	at com.thoughtworks.qdox.JavaDocBuilder$2.visitFile(JavaDocBuilder.java:435)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34)
      	at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:432)
      	at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:421)
      	at test.TestQDOX158.main(TestQDOX158.java:44)
      
      Show
      Vincent Siveton added a comment - Here is test case for the following: /** * javadoc */ @MyFunction.MyInterface( prefix1 = "abc", prefix2 = "abc" ) public static Object myMethod( String text ) Parsing error: Exception in thread "main" com.thoughtworks.qdox.parser.ParseException: syntax error @[74,45] in file:...TestQDOX158.java at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:987) at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1293) at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:968) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:317) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:349) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:345) at com.thoughtworks.qdox.JavaDocBuilder$2.visitFile(JavaDocBuilder.java:435) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52) at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:432) at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:421) at test.TestQDOX158.main(TestQDOX158.java:44)
      Vincent Siveton made changes -
      Field Original Value New Value
      Attachment TestQDOX158.java [ 40841 ]
      Hide
      Robert Scholte added a comment -

      issue confirmed. It seems like the combination of subclass/FQN (or let's just say: the dot) and more than 1 parameter (the comma) results in an exception. very odd...

      Show
      Robert Scholte added a comment - issue confirmed. It seems like the combination of subclass/FQN (or let's just say: the dot) and more than 1 parameter (the comma) results in an exception. very odd...
      Hide
      Robert Scholte added a comment -

      r588 | rfscholte | 2009-03-22 14:13:50 CET

      fix for qdox-158
      ----------------------------------------------------------------------------

      Show
      Robert Scholte added a comment - r588 | rfscholte | 2009-03-22 14:13:50 CET fix for qdox-158 ----------------------------------------------------------------------------
      Robert Scholte made changes -
      Assignee Robert Scholte [ rfscholte ]
      Resolution Fixed [ 1 ]
      Status Open [ 1 ] Closed [ 6 ]
      Fix Version/s 1.10 [ 15020 ]
      Paul Hammant made changes -
      Resolution Fixed [ 1 ]
      Status Closed [ 6 ] Reopened [ 4 ]
      Paul Hammant made changes -
      Resolution Fixed [ 1 ]
      Fix Version/s 1.9.1 [ 15252 ]
      Status Reopened [ 4 ] Closed [ 6 ]
      Fix Version/s 1.10 [ 15020 ]

        People

        • Assignee:
          Robert Scholte
          Reporter:
          Vincent Siveton
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: