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

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

Thanks for the reviews!

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

PR Comment: https://git.openjdk.org/jdk/pull/28858#issuecomment-3667104831


More information about the core-libs-dev mailing list