NPE in Runner.run().entrySet() in JMH > 0.4.2
Aleksey Shipilev
aleksey.shipilev at oracle.com
Fri Apr 11 13:34:15 UTC 2014
On 04/11/2014 12:16 AM, Roman Leventov wrote:
> NPE with JMH 0.4.2 is useful, because "running" empty bench set makes no sense.
> But throwing something like "EmptyPatternException" (unchecked) would be nicer
> (the problem will be immediately clear from command line).
It might be indeed more prudent to throw the exception. Fixed:
http://hg.openjdk.java.net/code-tools/jmh/rev/1af51af3b175
> What about JMH > 0.4.2? You changed 1 line, it won't help to get results
> (with JMH 0.5.6 I have NPE even when pattern match some methods).
This doesn't make sense to me. Are you saying you *have* the match, the
benchmarks indeed executed, but the benchmark results are still empty?
Have you looked at -v EXTRA to see if there is a match?
-Aleksey.
More information about the jmh-dev
mailing list