Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8039469

JDK 1.8.0_20 build b05 warns about annotation processing

XMLWordPrintable

    • x86_64
    • linux_ubuntu

      FULL PRODUCT VERSION :
      java version "1.8.0_20-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 25.20-b05, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Does not matter

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      "-Xlint" default option used on javac

      A DESCRIPTION OF THE PROBLEM :
      In JDK 1.8.0 GA, if default -Xlint is enabled while compiling code, by default javac does not print warnings about "processing".

      In JDK 1.8.0_20 (b05) it suddenly warns. The Lucene team has found this bug in Javac when running their builds with latest JDK 8 EA build.

      REGRESSION. Last worked in version 8

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile code that uses Annotation, e.g. JUnit test cases with -Xlint (to enable "default" warnings.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No warning wa sprinted in JDK 8 GA, so there should be none in u20.
      ACTUAL -
      [javac] Compiling 411 source files to C:\Users\JenkinsSlave\workspace\Lucene-Solr-4.x-Windows\lucene\build\core\classes\test
      [javac] warning: No processor claimed any of these annotations: com.carrotsearch.randomizedtesting.annotations.ThreadLeakAction,org.junit.BeforeClass,org.apache.lucene.util.LuceneTestCase.SuppressCodecs,com.carrotsearch.randomizedtesting.annotations.TimeoutSuite,org.apache.lucene.util.LuceneTestCase.Slow,org.junit.runner.RunWith,com.carrotsearch.randomizedtesting.annotations.TestGroup,com.carrotsearch.randomizedtesting.annotations.ThreadLeakLingering,com.carrotsearch.randomizedtesting.annotations.Repeat,org.junit.After,com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters,com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope,com.carrotsearch.randomizedtesting.annotations.Timeout,org.junit.ClassRule,org.junit.Before,org.junit.AfterClass,org.apache.lucene.util.junitcompat.TestGroupFiltering.Jira,org.apache.lucene.util.junitcompat.TestGroupFiltering.Foo,com.carrotsearch.randomizedtesting.annotations.ThreadLeakZombies,org.junit.Test,com.carrotsearch.randomizedtesting.annotations.ThreadLeakGroup,org.junit.Rule,com.carrotsearch.randomizedtesting.annotations.TestMethodProviders,org.junit.Ignore,com.carrotsearch.randomizedtesting.annotations.Seed,org.apache.lucene.util.junitcompat.TestGroupFiltering.Bar,org.apache.lucene.util.LuceneTestCase.Nightly

      All those annotations are runtime only and are not intended to be run by annotation processors (like @org.junit.Test)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Pass: -Xlint:-processing

            jjg Jonathan Gibbons
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: