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

Disable annotation processing lint warnings when building microbenchmarks

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b03

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: