RFR: 8327786: Add fluent setAccessible()
Sergey
duke at openjdk.org
Mon Mar 11 23:05:21 UTC 2024
The feature allows to extract a private field value in a single expression, like so:
object.getClass().getDeclaredField().setAccessible().get(object)
-------------
Commit messages:
- Add functional-style setAccessible()
Changes: https://git.openjdk.org/jdk/pull/17578/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17578&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8327786
Stats: 10 lines in 1 file changed: 10 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/17578.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17578/head:pull/17578
PR: https://git.openjdk.org/jdk/pull/17578
More information about the core-libs-dev
mailing list