RFR: 8327786: Add fluent setAccessible()
David Holmes
dholmes at openjdk.org
Tue Mar 12 06:03:13 UTC 2024
On Thu, 25 Jan 2024 21:35:45 GMT, Sergey <duke at openjdk.org> wrote:
> The feature allows to extract a private field value in a single expression, like so:
>
> object.getClass().getDeclaredField().setAccessible().get(object)
src/java.base/share/classes/java/lang/reflect/Field.java line 184:
> 182: * @throws InaccessibleObjectException {@inheritDoc}
> 183: * @throws SecurityException {@inheritDoc}
> 184: */
Inherits from what?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17578#discussion_r1520897359
More information about the core-libs-dev
mailing list