-
Notifications
You must be signed in to change notification settings - Fork 38.1k
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
@Lazy not working in Native mode #30985
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
As a workaround for the second exception:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@Eng-Fouad Salam!
Note i use Lazy for a self circular dependency. |
You don't have to use |
Given the following sample: https://github.com/Eng-Fouad/spring-native-lazy-bug
I got an exception on running the native image:
When removing
@Aspect
, I got this exception:Removing
@Lazy
in both cases, resolves the problem for me and the native image works normally.The text was updated successfully, but these errors were encountered: