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

Reply via email to