Skip to content

Avoid shipping AWT classes in native images #29060

@sdeleuze

Description

@sdeleuze

java.beans.Introspector#findCustomizerClass JDK implementation references java.awt.Component.class which has the annoying side effect to include thousands of AWT classes in the native images. Even if we fix #26884, other parts of the ecosystem like Jackson are using java.beans.Introspector usually to get the property descriptors of a bean.

We will try to see if there is a way to evolve this JDK implementation in order to avoid this side effect. In the meantime, this issue is about providing a GraalVM substitution (so specific to native images, no impact on the JVM) that will have the same behavior while avoiding shipping all those AWT classes in the native image.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions