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.

        Issue Links

          Activity

          Hide
          jlahoda Jan Lahoda added a comment -
          Effectively an unfortunate interaction between JDK-8133896 and JDK-8072988 and -source 8.
          Show
          jlahoda Jan Lahoda added a comment - Effectively an unfortunate interaction between JDK-8133896 and JDK-8072988 and -source 8.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/c6b4fefd764c
          User: jlahoda
          Date: 2017-01-06 13:18:36 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/c6b4fefd764c User: jlahoda Date: 2017-01-06 13:18:36 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/c6b4fefd764c
          User: lana
          Date: 2017-01-11 20:47:59 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/langtools/rev/c6b4fefd764c User: lana Date: 2017-01-11 20:47:59 +0000

            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: