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

Annotation processor not run with -source <= 8

    Details

    • Subcomponent:
    • Resolved In Build:
      b152
    • Verification:
      Verified

      Description

      JMH uses an annotation processor to generate various META-INF resources, but as of the latest jdk9/dev this silently fails.

      To reproduce:
      mvn archetype:generate \
                -DinteractiveMode=false \
                -DarchetypeGroupId=org.openjdk.jmh \
                -DarchetypeArtifactId=jmh-java-benchmark-archetype \
                -DgroupId=org.sample \
                -DartifactId=test \
                -Dversion=1.0
      cd test
      mvn compile
      ls target/classes

      Should contain:
      META-INF
      org
      perf

      Actual:
      org
      perf

      This works in 9+149 but not in 9+150, and bisecting over the langtools changes seems to implicate https://bugs.openjdk.java.net/browse/JDK-8133896 as the root cause.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlahoda Jan Lahoda
                Reporter:
                redestad Claes Redestad
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: