RFR: 8351593: [JMH] test PhoneCode.Bulk reports NPE exception
Claes Redestad
redestad at openjdk.org
Thu Mar 20 16:19:07 UTC 2025
On Wed, 12 Mar 2025 15:53:33 GMT, Vladimir Ivanov <vaivanov at openjdk.org> wrote:
> the test output was cleanup for common execution.
The root cause seems to be that `DataProviders.dictionary()` attempts to load a dictionary file that isn't there, which means that the microbenchmark is likely not testing what the original author intended. This was missed when porting over from jmh-jdk-microbenchmarks. See https://github.com/openjdk/jmh-jdk-microbenchmarks/blob/master/micros-jdk8/src/main/resources/org/openjdk/bench/java/util/stream/tasks/cmudict-0.7b.txt
I'd suggest removing `DataProviders` and the tests which depend on it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24011#issuecomment-2741003606
More information about the core-libs-dev
mailing list