Avoid shipping AWT classes in native images #29060
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
Milestone
java.beans.Introspector#findCustomizerClass
JDK implementation referencesjava.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 usingjava.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.
The text was updated successfully, but these errors were encountered: