Skip to content

[GR-39967] findStaticVarHandle folding can trigger initialization of user classes during the image build #4744

@gradinac

Description

@gradinac

When performing a VarHandle lookup for a static field, native-image will fold the method call if the arguments are constant. However, this may trigger initialization of user classes. An example of such a lookup can be found in netty 5

Tracked internally by GR-39967.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions