RFR: 8373832: Test java/lang/invoke/TestVHInvokerCaching.java tests nothing
Chen Liang
liach at openjdk.org
Tue Dec 16 23:30:14 UTC 2025
This test incorrectly uses getFields to discover package-private fields, resulting in no VarHandle being tested. Without fixing that site, the newly added assertFalse fails.
@JornVernee please review since you initially created this.
This bug is discovered during junit migration attempt. I intentionally separated this for ease of backport all the way to 17, when this test was added.
-------------
Commit messages:
- 8373832
Changes: https://git.openjdk.org/jdk/pull/28858/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28858&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8373832
Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/28858.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28858/head:pull/28858
PR: https://git.openjdk.org/jdk/pull/28858
More information about the core-libs-dev
mailing list