-
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
Infer hints required for aspects #28711
Comments
Likely depends on #28115. |
The proxy is now created properly but the |
I was able to make it work with:
Reflection hint should probably be inferred on Spring Framework side. The 2 proxies are required by
If it is confirmed those can't be inferred, I guess those proxies hints should be contributed on Boot side |
Looks like the |
We should also check if aspect annotations and the methods and classes where they are applied are available via reflection, I suspect #29765 sample is broken by annotation not accessible via reflection on native. |
We could potentially reuse Spring AOP infrastructure to identify the reflection entries needed to make aspects working out of the box. We could create a dedicated |
Sorry for moving that again, but I won't have the bandwidth to tackle that in Spring 6.0 timeframe, so let's target 6.1. |
This fix has been tested successfully with a few samples (including Feedback welcome. |
I believe this broke the batch AOT sample as follows:
The batch sample is failing. I don't know if it is special or if something else is involved. |
Fixed by 74155e3 |
In the spring-native sample
class-proxies-aop
in the branchsb-3.0.x
, the@Aspect
works when running in AOT mode, but not in a native-image.There's no exception, the aspect just doesn't get executed.
The text was updated successfully, but these errors were encountered: