RFR: 8323995: Suppress notes generated on incremental microbenchmark builds

Claes Redestad redestad at openjdk.org
Wed Jan 17 13:40:57 UTC 2024


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.

To carefully disable this informative message without disabling all linters and warnings we can supply the undocumented `-XDsuppressNotes` flag.

-------------

Commit messages:
 - 8323995: Suppress notes generated on incremental microbenchmark builds

Changes: https://git.openjdk.org/jdk/pull/17464/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17464&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8323995
  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/17464.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17464/head:pull/17464

PR: https://git.openjdk.org/jdk/pull/17464


More information about the build-dev mailing list