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