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

Disable annotation processing lint warnings when building microbenchmarks

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • None
    • infrastructure
    • b03

      Currently the microbenchmark build fails if one adds a microbenchmark using annotations not claimed by the JMH annotation processor - say, a micro creating JFR events:

      === Output from failing command(s) repeated here ===
      * For target support_test_micro_classes__the.BUILD_JDK_MICROBENCHMARK_batch:
      warning: No processor claimed any of these annotations: jdk.jfr/jdk.jfr.Enabled,jdk.jfr/jdk.jfr.Name,jdk.jfr/jdk.jfr.Registered,jdk.jfr/jdk.jfr.StackTrace
      error: warnings found and -Werror specified
      1 error
      1 warning

      Solution: add -Xlint:-processing after -Xlint in make/test/BuildMicrobenchmark.gmk

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: