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

Plugin build log contains many annotation processor warnings

XMLWordPrintable

    • 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
      

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

              Created:
              Updated:
              Resolved: