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

Suppress notes generated on incremental microbenchmark builds

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • infrastructure
    • None
    • b07

      Incrementally building the OpenJDK microbenchmarks emit a "Note: Benchmark entries for <class>already exists, overwriting" for each microbenchmark class. This is generated by the JMH BenchmarkProcessor annotation processor via the javac messager framework.

      Supplying -nowarn works, but that suppresses everything. To carefully disable this without disabling linters and other warnings it seems one option is to supply the -XDsuppressNotes flag to the javac execution.

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

              Created:
              Updated:
              Resolved: