-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Aspect not invoked in native image #30529
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
Comments
Looks like a duplicate of #28711. |
After more testing, seems to be a distinct issue. |
The repro for that issue is interesting because it is still broken after fixing #28711 in Comparing DEBUG/TRACE logs between JVM/native may allow to identify what causes the aspect to be ignored. |
On native, fails with Works with With public interface DataRepository extends MongoRepository<Data, ObjectId>, DataRepositoryCustom { ... }
public class DataRepositoryImpl implements DataRepositoryCustom { ... } On the JVM, it works with all 3 pointcut expressions. More reflection hints do not seem to fix this. Maybe there's a difference of behavior between the JVM and native? |
Out of curiosity, what happens if you try this (note the extra @Pointcut("execution(* com.example.demo.data.DataRepository+.*(..))") It probably does not make any difference, but I'm interested in knowing.
Could well be the case. |
@sbrannen Same result I managed to identify that the difference between JVM and native is the invocation of Looks like related to oracle/graal#6079, so I will close this issue and add a commend on GraalVM side. |
While trying to prepare the reproducible case for #30525 I noticed there is a problem with aspect in native image. I'll provide a repro.
The text was updated successfully, but these errors were encountered: