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

Java warnings generated by tycho-compiler-jdt 0.19.0 not detected

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Building Java sources with Maven using org.eclipse.tycho:tycho-compiler-jdt:0.19.0 produces compiler warnings in a slightly different format than older versions:

      0.19.0
      [WARNING] /path/to/job/job-name/module/src/main/java/com/example/Example.java:[13]
      	something.getOldValue();
      	          ^^^^^^^^^^^^^
      The method getOldValue() from the type SomeType is deprecated
      
      before 0.19.0
      [WARNING] /path/to/job/job-name/module/src/main/java/com/example/Example.java:[13,0]
      	something.getOldValue();
      	          ^^^^^^^^^^^^^
      The method getOldValue() from the type SomeType is deprecated
      

      The only difference is the specification of the location within the source file:
      [13] vs. [13,0]

      The leads to the problem that when using the "Java Compiler (Eclipse)" parser does not detect any warnings.
      When using the "Java Compiler (javac)" parser instead, the warnings are detected but the message is not extracted.

      I've already patched the parser and will submit a pull request soon.

        Attachments

          Activity

          Hide
          codesimplicity Uwe Petschke added a comment -
          Show
          codesimplicity Uwe Petschke added a comment - Created pull request: https://github.com/jenkinsci/warnings-plugin/pull/35
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: codesimplicity
          Path:
          src/main/java/hudson/plugins/warnings/parser/EclipseParser.java
          http://jenkins-ci.org/commit/warnings-plugin/d47a3ad49e0e60213839c2430bfb3771d828c156
          Log:
          adapt to tycho-compiler-jdt 0.19.0

          org.eclipse.tycho:tycho-compiler-jdt:0.19.0 generates locations as "[line]" not "[line, column]" as before;
          see https://issues.jenkins-ci.org/browse/JENKINS-21377

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: codesimplicity Path: src/main/java/hudson/plugins/warnings/parser/EclipseParser.java http://jenkins-ci.org/commit/warnings-plugin/d47a3ad49e0e60213839c2430bfb3771d828c156 Log: adapt to tycho-compiler-jdt 0.19.0 org.eclipse.tycho:tycho-compiler-jdt:0.19.0 generates locations as " [line] " not " [line, column] " as before; see https://issues.jenkins-ci.org/browse/JENKINS-21377
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: codesimplicity
          Path:
          src/test/java/hudson/plugins/warnings/parser/EclipseParserTest.java
          src/test/resources/hudson/plugins/warnings/parser/issue21377.txt
          http://jenkins-ci.org/commit/warnings-plugin/e8d420a8e8802579139ecdc44317900f21481b68
          Log:
          JENKINS-21377 add test

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: codesimplicity Path: src/test/java/hudson/plugins/warnings/parser/EclipseParserTest.java src/test/resources/hudson/plugins/warnings/parser/issue21377.txt http://jenkins-ci.org/commit/warnings-plugin/e8d420a8e8802579139ecdc44317900f21481b68 Log: JENKINS-21377 add test
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/warnings/parser/EclipseParser.java
          src/test/java/hudson/plugins/warnings/parser/EclipseParserTest.java
          src/test/resources/hudson/plugins/warnings/parser/issue21377.txt
          http://jenkins-ci.org/commit/warnings-plugin/5e1fc876e584ed7fadfb782367ea99916c8793e3
          Log:
          Merge pull request #35 from codesimplicity/JENKINS-21377

          [FIXED JENKINS-21377] Update of regexp for tycho-compiler-jdt 0.19.0

          Compare: https://github.com/jenkinsci/warnings-plugin/compare/f0bfddde1c95...5e1fc876e584

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/parser/EclipseParser.java src/test/java/hudson/plugins/warnings/parser/EclipseParserTest.java src/test/resources/hudson/plugins/warnings/parser/issue21377.txt http://jenkins-ci.org/commit/warnings-plugin/5e1fc876e584ed7fadfb782367ea99916c8793e3 Log: Merge pull request #35 from codesimplicity/ JENKINS-21377 [FIXED JENKINS-21377] Update of regexp for tycho-compiler-jdt 0.19.0 Compare: https://github.com/jenkinsci/warnings-plugin/compare/f0bfddde1c95...5e1fc876e584

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              codesimplicity Uwe Petschke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: