QDox choking on some generics
-----------------------------

                 Key: MPLUGIN-152
                 URL: http://jira.codehaus.org/browse/MPLUGIN-152
             Project: Maven 2.x Plugin Tools
          Issue Type: Bug
          Components: Plugin Plugin
    Affects Versions: 2.5
            Reporter: Richard Wallace
            Priority: Critical


I'm getting errors like

{code}
com.thoughtworks.qdox.parser.ParseException: syntax error @[722,51]
{code}

on lines of code that look like

{code}
    private static final Map<String, String> things = ImmutableMap.<String, 
String>builder().build();
{code}

If I create the builder on one line and invoke build - or any other method on 
the returned builder - on another line, qdox if fine.  But if I try to do an 
invocation on the returned object, it breaks.  In general, it seems to be a 
problem when specifying type on a method and then invoking a method on the 
returned value.

I tried updating qdox to 1.9.1 with

{code}
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>2.5</version>
        <dependencies>
          <dependency>
            <groupId>com.thoughtworks.qdox</groupId>
            <artifactId>qdox</artifactId>
            <version>1.9.1</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
{code}

but that didn't fix it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to