RFR: 8337622: IllegalArgumentException in java.lang.reflect.Field.get

Aleksey Shipilev shade at openjdk.org
Wed Aug 7 18:52:31 UTC 2024


On Wed, 7 Aug 2024 18:32:18 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Make the object init_lock be an injected field in the mirror so that reflecting on componentType will not inadvertently return the init_lock.  The init_lock is a Java object and the VM holds it during class linking and uses it to set state during class initialization.
> Tested with tier1-8.

Ah, oops. Looks fine. So 21.0.5 is also broken, the new regression test fails there; I'll pick it up for backports.

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

Marked as reviewed by shade (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/20498#pullrequestreview-2225948164


More information about the hotspot-runtime-dev mailing list