[jdk25u-dev] Integrated: 8373832: Test java/lang/invoke/TestVHInvokerCaching.java tests nothing
Roland Mesde
duke at openjdk.org
Thu Jan 29 19:46:40 UTC 2026
On Tue, 27 Jan 2026 17:02:52 GMT, Roland Mesde <duke at openjdk.org> wrote:
> Backporting JDK-8373832: Test java/lang/invoke/TestVHInvokerCaching.java tests nothing.
>
> This PR fixes a test bug where getFields() is incorrectly used to discover package-private fields. Since getFields() only returns public fields, no VarHandle was actually being tested, causing a newly added assertFalse to fail.
>
> For parity with Oracle JDK.
>
> Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
>
> make test TEST=test/jdk/java/lang/invoke/TestVHInvokerCaching.java
>
> Results attached:
>
> [linux-aarch64-specific-test.log](https://github.com/user-attachments/files/24893636/linux-aarch64-specific-test.log)
> [linux-x64-specific-test.log](https://github.com/user-attachments/files/24893637/linux-x64-specific-test.log)
> [macos-aarch64-specific-test.log](https://github.com/user-attachments/files/24893638/macos-aarch64-specific-test.log)
> [windows-x64-specific-test.log](https://github.com/user-attachments/files/24893639/windows-x64-specific-test.log)
This pull request has now been integrated.
Changeset: b6c74c17
Author: Roland Mesde <mesde at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk25u-dev/commit/b6c74c17521c927d8a2ac32c16599c47548478b2
Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod
8373832: Test java/lang/invoke/TestVHInvokerCaching.java tests nothing
Backport-of: e75726ee03ca4664827ca5d680c02bcf2a96f4ea
-------------
PR: https://git.openjdk.org/jdk25u-dev/pull/187
More information about the jdk-updates-dev
mailing list