JMH 1.6.2
Aleksey Shipilev
aleksey.shipilev at oracle.com
Wed Mar 4 14:00:15 UTC 2015
Hi,
JMH 1.6.2 is released and available at Maven Central (thanks to Evgeny,
as usual). This is a maintenance release. If you are migrating to 1.6.x,
read the release notes for 1.6 and 1.6.1 as well:
http://mail.openjdk.java.net/pipermail/jmh-dev/2015-February/001702.html
http://mail.openjdk.java.net/pipermail/jmh-dev/2015-February/001713.html
Summary of changes in 1.6.2:
* Cleaned up the remained mentions of @GenerateMicroBenchmark in code,
javadocs and samples. Contributed by Claes Redestad:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901318
* As per Javadoc, @Params are not acceptable on final fields, because
they can be folded in the generated code, and setting them via
reflection would not change the behavior appropriately. However, JMH did
not check it. JMH will fail to compile @Param over final fields now:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901320
* @Params were also rejected on static fields. While the best practice
is still using @Params over the instance fields, in order to properly
initialize @State, in some corner cases it makes sense to allow @Params
over static fields. One example is accessing the parameters from the
nested (static) classes within the benchmark. Implemented:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901321
* Update reminder is set at 90 days now:
https://bugs.openjdk.java.net/browse/CODETOOLS-7901319
* Polishing and fixups in internal tests.
Enjoy!
-Aleksey.
More information about the jmh-dev
mailing list