RFR: 8372002: VarHandle for receiver's superclass instance fields fails describeConstable

Jorn Vernee jvernee at openjdk.org
Mon Nov 17 22:38:11 UTC 2025


On Mon, 17 Nov 2025 16:15:05 GMT, Chen Liang <liach at openjdk.org> wrote:

> In project Babylon work when a VarHandle needs to be unreflected, @mcimadamore discovered that our current unreflection of instance field var handles cannot unreflect instance fields from superclasses, and throws an InternalError instead.
> 
> We can easily fix this by iterating the superclasses for fields.

Looks good.

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

Marked as reviewed by jvernee (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28355#pullrequestreview-3474804861


More information about the core-libs-dev mailing list