RFR: 8337622: IllegalArgumentException in java.lang.reflect.Field.get
Coleen Phillimore
coleenp at openjdk.org
Wed Aug 7 20:42:30 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.
Yes, thanks for pointing that out. JDK 21 backported the fix to JDK-8333542 to restore the init_lock oop, so has this breakage also. This is also broken with JDK 11 and 17 but those releases don't throw IllegalArgumentException.
Thank you for the code review, Aleksey.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20498#issuecomment-2274308820
PR Comment: https://git.openjdk.org/jdk/pull/20498#issuecomment-2274309351
More information about the hotspot-runtime-dev
mailing list