Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-152

QDox choking on some generics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.5
    • 2.5.1
    • Plugin Plugin
    • None

    Description

      I'm getting errors like

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

      on lines of code that look like

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

      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

        <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>
      

      but that didn't fix it.

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            rwallace Richard Wallace
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: