Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21240

Javac compiler "cannot find annotation method" warnings are ignored

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • warnings-plugin
    • None

      I have a few of the following warnings outputted by javac:

      aaa.class: warning: Cannot find annotation method 'xxx()' in type 'yyyy': class file for fully.qualified.ClassName not found

      However, they are not being picked up by the Warnings plug-in. I assume it is because they don't have the typical format of "[javac] file: warning: [type] message" (as the [type] part is not there).

          [JENKINS-21240] Javac compiler "cannot find annotation method" warnings are ignored

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/warnings/WarningsPublisher.java
          src/main/java/hudson/plugins/warnings/parser/AntJavacParser.java
          src/test/java/hudson/plugins/warnings/parser/AntJavacParserTest.java
          src/test/java/hudson/plugins/warnings/parser/JavacParserTest.java
          src/test/resources/hudson/plugins/warnings/parser/issue21240.txt
          http://jenkins-ci.org/commit/warnings-plugin/32d39fc6a60c8252db573a6bf9646682f0c69c01
          Log:
          [FIXED JENKINS-21240] Improve regexp.
          Now missing class file warnings are also catched.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/WarningsPublisher.java src/main/java/hudson/plugins/warnings/parser/AntJavacParser.java src/test/java/hudson/plugins/warnings/parser/AntJavacParserTest.java src/test/java/hudson/plugins/warnings/parser/JavacParserTest.java src/test/resources/hudson/plugins/warnings/parser/issue21240.txt http://jenkins-ci.org/commit/warnings-plugin/32d39fc6a60c8252db573a6bf9646682f0c69c01 Log: [FIXED JENKINS-21240] Improve regexp. Now missing class file warnings are also catched.

            drulli Ulli Hafner
            kmart216 David Humeniuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: