Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-126

PMD fails to parse source code in a specific case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5
    • 3.0
    • PMD
    • None
    • Gentoo Linux 64bit
      Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
      Java version: 1.6.0_20
      OS name: "linux" version: "2.6.34-gentoo-r12" arch: "amd64" Family: "unix"

    Description

      i appended a test .java file, which is as minimal as i was able to get it.
      when having it in my project, with the pmd plugin defined under reporting, and then using "mvn site",
      PMD fails to parse the source code.

      Output:
      #########
      [INFO] Generating "PMD Report" report.
      [WARNING] Error while parsing PmdTest.java: Encountered " "(" "( "" at line 99, column 22.
      Was expecting one of:
      "." ...
      "." ...
      "." ...
      #########
      (there are more of these last 3 lines)

      Attachments

        1. PmdTest.java
          0.3 kB
          Robin Vobruba

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              hoijui Robin Vobruba
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: