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

Chen Liang liach at openjdk.org
Wed Dec 17 20:54:41 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.

This pull request has now been integrated.

Changeset: e75726ee
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e75726ee03ca4664827ca5d680c02bcf2a96f4ea
Stats:     5 lines in 1 file changed: 2 ins; 0 del; 3 mod

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

Reviewed-by: jvernee, shade

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

PR: https://git.openjdk.org/jdk/pull/28858


More information about the core-libs-dev mailing list