Withdrawn: 7903908: JMH: Helpful message when benchmark builds are misconfigured
Aleksey Shipilev
shade at openjdk.org
Thu Dec 12 13:54:55 UTC 2024
On Thu, 12 Dec 2024 12:20:39 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> When JMH benchmark project is misconfigured, the runner would print an unhelpful error like:
>
>
> Exception in thread "main" java.lang.RuntimeException: ERROR: Unable to find the resource: /META-INF/BenchmarkList
> at org.openjdk.jmh.runner.AbstractResourceReader.getReaders(AbstractResourceReader.java:98)
> at org.openjdk.jmh.runner.BenchmarkList.find(BenchmarkList.java:124)
> at org.openjdk.jmh.runner.Runner.internalRun(Runner.java:252)
> at org.openjdk.jmh.runner.Runner.run(Runner.java:208)
> at org.openjdk.jmh.Main.main(Main.java:71)
>
>
> This is especially often when JDK 23 disabled annotation processors by default. We need to print more helpful message to guide users to resolution.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jmh/pull/143
More information about the jmh-dev
mailing list