-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Contribute init/destroy lifecycle introspection hints for registered beans #29246
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
bclozel
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
Oct 3, 2022
Temporarily reverting this change and rescheduling to RC2 for now, as this triggers a particular GraalVM issue and breaks existing native applications. |
bclozel
added a commit
that referenced
this issue
Oct 3, 2022
This new hint contribution triggers a GraalVM bug and breaks native compilation for several samples, we need to temporarily revert this change until a fix is available in GraalVM. See gh-29246
bclozel
added a commit
that referenced
this issue
Oct 3, 2022
See oracle/graal#5171 and oracle/graal#6139 for upcoming changes in GraalVM. Because this change is likely to land in 23.0.0, I'm rescheduling to 6.0.8. |
bclozel
changed the title
Contribute introspection hints on registered beans
Contribute init/destroy lifecycle introspection hints for registered beans
Mar 30, 2023
Reopening for two reasons:
|
sdeleuze
added a commit
that referenced
this issue
Apr 28, 2023
After b374824 related to gh-29246, `"queryAllDeclaredMethods": true` is now added on all registered beans. This legit change triggers oracle/graal#6510. This commit workarounds this GraalVM bug, and should be removed once the GraalVM fix has reached a wide enough audience. Closes gh-30383
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
Once #29205 is applied, several tests will start failing as Framework consistently uses
ReflectionUtils#findMethod
on registered beans for various reasons (finding init/detroy methods by name, looking for annotations). The existing infrastructure already adds targeted introspection/invocation hints, but this change takes a broader approach where we recognize that beans are very likely to be introspected by framework infrastructure.The text was updated successfully, but these errors were encountered: