QDox
  1. QDox
  2. QDOX-167

ParseException on generic method invocation with explicit type parameters

    Details

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

      Description

      Something like

      private static final Map<String, String> map1 = Collections.<String, String>emptyMap();
      

      dies with

      com.thoughtworks.qdox.parser.ParseException: syntax error @[8,80] in src/main/java/test/MyClass.java
              at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:1003)
              at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:1309)
              at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:984)
              at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:322)
              at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:354)
              at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:350)
              at com.thoughtworks.qdox.JavaDocBuilder$2.visitFile(JavaDocBuilder.java:440)
      

        Issue Links

          Activity

          Hide
          Benjamin Bentmann added a comment -

          Test project that exhibits bug upon "mvn compile".

          Show
          Benjamin Bentmann added a comment - Test project that exhibits bug upon "mvn compile".
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Attachment QDOX-167.zip [ 42540 ]
          Benjamin Bentmann made changes -
          Link This issue is depended upon by MPLUGIN-152 [ MPLUGIN-152 ]
          Hide
          Robert Scholte added a comment -

          r610 | rfscholte | 2009-06-23 22:46:56 CEST

          fix for QDOX-167: variable with generic typed method call
          ----------------------------------------------------------------------------

          Show
          Robert Scholte added a comment - r610 | rfscholte | 2009-06-23 22:46:56 CEST fix for QDOX-167 : variable with generic typed method call ----------------------------------------------------------------------------
          Robert Scholte made changes -
          Assignee Robert Scholte [ rfscholte ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.10 [ 15020 ]
          Resolution Fixed [ 1 ]
          Paul Hammant made changes -
          Fix Version/s 1.10 [ 15020 ]
          Fix Version/s 1.9.2 [ 15471 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: