Withdrawn: CODETOOLS-7902695: JMH should not try to access inaccessible fields
Aleksey Shipilev
shade at openjdk.java.net
Thu Jan 14 11:21:06 UTC 2021
On Thu, 14 Jan 2021 10:21:01 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> JDK 9+ reluctantly allows accessing `Console.cs` field to get the console encoding for e.g. Windows. JDK 16+ disallows it point-blank. JDK 9+ still prints the warning. Given that we would not be able to do this in future, it makes sense to check for field accessibility before trying to `setAccessible` the field for JDK 9+.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.java.net/jmh/pull/18
More information about the jmh-dev
mailing list