-
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
Field injection through @Resource
does not work after AOT processing
#30796
Comments
Thanks for the report. Unfortunately, a stack trace alone isn't enough to diagnose the problem. If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue. |
test.zip |
I used the build method provided in the official documentation and used the mvn -Pnative native:compile command to build it |
Thanks for the sample, @okboyone. I've reproduced the problem. It also occurs on the JVM when the app has undergone AOT processing. You can work around it by using Generally speaking, we don't recommend the use of field injection so you may want to update |
@Resource
does not work after AOT processing
Looks like a duplicate of #29614 as far as I can tell. |
The text was updated successfully, but these errors were encountered: