Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid shipping AWT classes in native images #29060

Closed
sdeleuze opened this issue Sep 2, 2022 · 0 comments
Closed

Avoid shipping AWT classes in native images #29060

sdeleuze opened this issue Sep 2, 2022 · 0 comments
Assignees
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

Comments

@sdeleuze
Copy link
Contributor

sdeleuze commented Sep 2, 2022

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.

@sdeleuze sdeleuze added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels Sep 2, 2022
@sdeleuze sdeleuze added this to the 6.0.0-M6 milestone Sep 2, 2022
@sdeleuze sdeleuze self-assigned this Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant