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

Plugin build log contains many annotation processor warnings

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 1.647
      JDK 7

      Many annotation processors used by Jenkins only claim compatibility with JDK6. When switching source/target version for the Java compiler to 1.7, many compile time warnings are generated. These warnings flood the build log and make it hard to spot other issues.

      These are the problematic annotation processors:

      jenkins.PluginSubtypeMarker
      net.java.sezpoz.impl.Indexer6
      org.eclipse.sisu.scanners.index.SisuIndexAPT6
      org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl
      org.kohsuke.stapler.jsr269.ConstructorProcessor
      org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor
      org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor
      org.kohsuke.stapler.jsr269.RequirePOSTAnnotationProcessor
      org.kohsuke.stapler.jsr269.WebMethodAnnotationProcessor
      org.kohsuke.wpc.ProcessorImpl
      

      build log:

      :job-dsl-api-viewer:clean UP-TO-DATE
      :job-dsl-core:clean
      :job-dsl-plugin:clean
      :job-dsl-core:compileAstJava UP-TO-DATE
      :job-dsl-core:compileAstGroovy
      :job-dsl-core:processAstResources
      :job-dsl-core:astClasses
      :job-dsl-core:compileJava
      :job-dsl-core:compileGroovy
      :job-dsl-core:processResources
      :job-dsl-core:classes
      :job-dsl-core:jar
      :job-dsl-core:startScripts
      :job-dsl-core:distTar
      :job-dsl-core:distZip
      :job-dsl-core:assemble
      :job-dsl-core:codenarcAst
      :job-dsl-core:codenarcExamples
      :job-dsl-core:codenarcMain
      :job-dsl-core:codenarcTest
      :job-dsl-core:compileTestJava UP-TO-DATE
      :job-dsl-core:compileTestGroovy
      :job-dsl-core:processTestResources
      :job-dsl-core:testClasses
      :job-dsl-core:test
      :job-dsl-core:check
      :job-dsl-core:build
      :job-dsl-plugin:localizer
      :job-dsl-plugin:stapler
      :job-dsl-plugin:compileJava
      warning: Supported source version 'RELEASE_6' from annotation processor 'jenkins.PluginSubtypeMarker' less than -source '1.7'
      warning: No SupportedSourceVersion annotation found on org.kohsuke.wpc.ProcessorImpl, returning RELEASE_6.
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.wpc.ProcessorImpl' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'net.java.sezpoz.impl.Indexer6' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ConstructorProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.RequirePOSTAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.WebMethodAnnotationProcessor' less than -source '1.7'
      Note: C:\Projects\job-dsl-plugin\job-dsl-plugin\build\generated-src\stubs\javaposse\jobdsl\plugin\InterruptibleJobManagement.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      10 warnings
      :job-dsl-plugin:compileGroovy
      warning: Supported source version 'RELEASE_6' from annotation processor 'jenkins.PluginSubtypeMarker' less than -source '1.7'
      warning: No SupportedSourceVersion annotation found on org.kohsuke.wpc.ProcessorImpl, returning RELEASE_6.
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.wpc.ProcessorImpl' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'net.java.sezpoz.impl.Indexer6' less than -source '1.7'
      Note: javaposse.jobdsl.plugin.DescriptorImpl indexed under hudson.Extension
      Note: javaposse.jobdsl.plugin.DescriptorImpl.GeneratedJobMapItemListener indexed under hudson.Extension
      Note: javaposse.jobdsl.plugin.MonitorTemplateJobs indexed under hudson.Extension
      Note: javaposse.jobdsl.plugin.actions.SeedJobTransientActionFactory indexed under hudson.Extension
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ConstructorProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.RequirePOSTAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.WebMethodAnnotationProcessor' less than -source '1.7'
      warning: Implicitly compiled files were not subject to annotation processing.
        Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation.
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: C:\Projects\job-dsl-plugin\job-dsl-plugin\src\main\groovy\javaposse\jobdsl\plugin\JenkinsJobManagement.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      11 warnings
      :job-dsl-plugin:processResources
      :job-dsl-plugin:classes
      :job-dsl-plugin:jpi
      :job-dsl-plugin:war SKIPPED
      :job-dsl-plugin:assemble
      :job-dsl-plugin:codenarcMain
      :job-dsl-plugin:codenarcTest
      :job-dsl-plugin:generate-test-hpl
      :job-dsl-plugin:insertTest
      :job-dsl-plugin:compileTestJava UP-TO-DATE
      :job-dsl-plugin:compileTestGroovy
      warning: Supported source version 'RELEASE_6' from annotation processor 'jenkins.PluginSubtypeMarker' less than -source '1.7'
      warning: No SupportedSourceVersion annotation found on org.kohsuke.wpc.ProcessorImpl, returning RELEASE_6.
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.wpc.ProcessorImpl' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.jvnet.hudson.annotation_indexer.AnnotationProcessorImpl' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'net.java.sezpoz.impl.Indexer6' less than -source '1.7'
      Note: javaposse.jobdsl.plugin.ExampleJobDslExtension indexed under hudson.Extension
      Note: javaposse.jobdsl.plugin.TestContextExtensionPoint indexed under hudson.Extension
      Note: javaposse.jobdsl.plugin.TestContextExtensionPoint2 indexed under hudson.Extension
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ConstructorProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.ExportedBeanAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.QueryParameterAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.RequirePOSTAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.kohsuke.stapler.jsr269.WebMethodAnnotationProcessor' less than -source '1.7'
      warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.sisu.scanners.index.SisuIndexAPT6' less than -source '1.7'
      Note: C:\Projects\job-dsl-plugin\job-dsl-plugin\src\test\groovy\javaposse\jobdsl\plugin\ExampleJobDslExtension.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      11 warnings
      :job-dsl-plugin:processTestResources
      :job-dsl-plugin:testClasses
      :job-dsl-plugin:test
      :job-dsl-plugin:check
      :job-dsl-plugin:build
      
      BUILD SUCCESSFUL
      
      Total time: 11 mins 12.997 secs
      

          [JENKINS-32978] Plugin build log contains many annotation processor warnings

          org.eclipse.sisu.scanners.index.SisuIndexAPT6 is provided by org.eclipse.sisu:org.eclipse.sisu.inject which is a transitive dependency of jenkins-test-harness. It has been fixed, but jenkins-test-harness uses an older version.

          https://github.com/eclipse/sisu.inject/commit/001b216fe0253e22b557a03d481b99e4024c7ad0

          Daniel Spilker added a comment - org.eclipse.sisu.scanners.index.SisuIndexAPT6 is provided by org.eclipse.sisu:org.eclipse.sisu.inject which is a transitive dependency of jenkins-test-harness. It has been fixed, but jenkins-test-harness uses an older version. https://github.com/eclipse/sisu.inject/commit/001b216fe0253e22b557a03d481b99e4024c7ad0

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          job-dsl-plugin/build.gradle
          http://jenkins-ci.org/commit/job-dsl-plugin/533e3fdecd64897e217848e3041ee511cdf07a26
          Log:
          exclude windows-package-checker dependency to avoid compile time warnings

          see JENKINS-32978

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: job-dsl-plugin/build.gradle http://jenkins-ci.org/commit/job-dsl-plugin/533e3fdecd64897e217848e3041ee511cdf07a26 Log: exclude windows-package-checker dependency to avoid compile time warnings see JENKINS-32978

          PR for updating windows-package-checker in core: https://github.com/jenkinsci/jenkins/pull/2116

          Stapler has already been updated in core: https://github.com/jenkinsci/jenkins/commit/b00ecb28dea12422f69625bce688b9a6eea4ecbd

          Daniel Spilker added a comment - PR for updating windows-package-checker in core: https://github.com/jenkinsci/jenkins/pull/2116 Stapler has already been updated in core: https://github.com/jenkinsci/jenkins/commit/b00ecb28dea12422f69625bce688b9a6eea4ecbd

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/3e77bcde164508354f9b6cdd6cb83b2316cf0008
          Log:
          updated windows-package-checker to 1.2 to avoid compile time warnings

          JENKINS-32978

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/3e77bcde164508354f9b6cdd6cb83b2316cf0008 Log: updated windows-package-checker to 1.2 to avoid compile time warnings JENKINS-32978

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/61457361cd0b2c8282b4cd465dac49e483315092
          Log:
          Merge pull request #2120 from daspilker/JENKINS-32978-windows-package-checker

          JENKINS-32978 updated windows-package-checker to 1.2 to avoid compile time warnings

          Compare: https://github.com/jenkinsci/jenkins/compare/28d07a59ca5e...61457361cd0b

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/61457361cd0b2c8282b4cd465dac49e483315092 Log: Merge pull request #2120 from daspilker/ JENKINS-32978 -windows-package-checker JENKINS-32978 updated windows-package-checker to 1.2 to avoid compile time warnings Compare: https://github.com/jenkinsci/jenkins/compare/28d07a59ca5e...61457361cd0b

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          core/src/main/java/jenkins/PluginSubtypeMarker.java
          http://jenkins-ci.org/commit/jenkins/c6d3390dc238a8c9cce65edf010e6bf2c9120af4
          Log:
          JENKINS-32978 Support latest source version to avoid compile time warnings with JDK7 (#2032)

          see http://stackoverflow.com/questions/8185331/forward-compatible-java-6-annotation-processor-and-supportedsourceversion

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: core/src/main/java/jenkins/PluginSubtypeMarker.java http://jenkins-ci.org/commit/jenkins/c6d3390dc238a8c9cce65edf010e6bf2c9120af4 Log: JENKINS-32978 Support latest source version to avoid compile time warnings with JDK7 (#2032) see http://stackoverflow.com/questions/8185331/forward-compatible-java-6-annotation-processor-and-supportedsourceversion

          Hi, does the commit above fix that issue daspilker?

          Baptiste Mathus added a comment - Hi, does the commit above fix that issue daspilker ?

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/732696bd89ac42c02b5c76d4e1cfc1796ca02bb6
          Log:
          Update annotation-indexer from 1.7 to 1.11 (#2329)

          Diff: https://github.com/jenkinsci/lib-annotation-indexer/compare/e90dade9a07b04b64ac1b08d539d30ad69ddf7a8...2eec43c72b3cd040d2057e6bbbf639f5e030453e

          Major changes:

          • 1.11 - JENKINS-32978 support latest source version to avoid compile time warnings with JDK7
          • 1.10 - Get ready for JDK 9
          • 1.10 - Be tolerant against line separators on different operating systems
          • 1.9 - Support of third-party annotations
          • 1.8 - Annotation processor can be intercepted

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/732696bd89ac42c02b5c76d4e1cfc1796ca02bb6 Log: Update annotation-indexer from 1.7 to 1.11 (#2329) Diff: https://github.com/jenkinsci/lib-annotation-indexer/compare/e90dade9a07b04b64ac1b08d539d30ad69ddf7a8...2eec43c72b3cd040d2057e6bbbf639f5e030453e Major changes: 1.11 - JENKINS-32978 support latest source version to avoid compile time warnings with JDK7 1.10 - Get ready for JDK 9 1.10 - Be tolerant against line separators on different operating systems 1.9 - Support of third-party annotations 1.8 - Annotation processor can be intercepted

          batmat we can close this after https://github.com/jenkinsci/jenkins/pull/2338 got merged

          The warning for org.eclipse.sisu.scanners.index.SisuIndexAPT6 has not been addressed, but updating org.eclipse.sisu:org.eclipse.sisu.inject in jenkins-test-harness is tricky and may have side-effects.

          Daniel Spilker added a comment - batmat we can close this after https://github.com/jenkinsci/jenkins/pull/2338 got merged The warning for org.eclipse.sisu.scanners.index.SisuIndexAPT6 has not been addressed, but updating org.eclipse.sisu:org.eclipse.sisu.inject in jenkins-test-harness is tricky and may have side-effects.

          Oleg Nenashev added a comment -

          Released as Jenkins-2.4

          Oleg Nenashev added a comment - Released as Jenkins-2.4

            Unassigned Unassigned
            daspilker Daniel Spilker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: