RFR: 8373832: Test java/lang/invoke/TestVHInvokerCaching.java tests nothing

Jorn Vernee jvernee at openjdk.org
Wed Dec 17 00:35:49 UTC 2025


On Tue, 16 Dec 2025 23:23:02 GMT, Chen Liang <liach at openjdk.org> wrote:

> 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.

Good catch

-------------

Marked as reviewed by jvernee (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28858#pullrequestreview-3585505598


More information about the core-libs-dev mailing list