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

    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

          vtintillier Vivien Tintillier created issue -
          vtintillier Vivien Tintillier made changes -
          Field Original Value New Value
          Description Here is the sample log file

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

          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

          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
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          abayer Andrew Bayer made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 135960 ] JNJira + In-Review [ 203772 ]

          People

            vtintillier Vivien Tintillier
            vtintillier Vivien Tintillier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: