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

Bad parsing of javac deprecation warning in case of deprecated method with array as parameter

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      For this input log file:

      <log>
      First for Ant javac or pure javac

      [javac] D:\path\to\my\Class.java:225: warning: [deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[]) in my.OtherClass has been deprecated
      [javac] oc.loadAvailable("roottest.xml", 0xFFF, 0xFFFF, new String[]

      {"filter"}

      );
      [javac] ^

      Then for maven javac

      [WARNING] D:\path\to\my\Class.java:[225,39] [deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[]) in my.OtherClass has been deprecated
      </log>

      we expect the category to be 'Deprecation' but we get 'Deprecation] loadAvailable(java.lang.String,int,int,java.lang.String[' instead.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : vtintillier
          Path:
          trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/parser/AntJavacParser.java
          trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/parser/JavacParser.java
          trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/AntJavacParserTest.java
          trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/JavacParserTest.java
          trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java
          trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/all.txt
          trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/issue5868.txt
          http://jenkins-ci.org/commit/28447
          Log:
          [FIXED JENKINS-5868] Fix javac parsers to handle array type in deprecated method

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : vtintillier Path: trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/parser/AntJavacParser.java trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/parser/JavacParser.java trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/AntJavacParserTest.java trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/JavacParserTest.java trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/all.txt trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/issue5868.txt http://jenkins-ci.org/commit/28447 Log: [FIXED JENKINS-5868] Fix javac parsers to handle array type in deprecated method

            People

            • Assignee:
              vtintillier vtintillier
              Reporter:
              vtintillier vtintillier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: