-
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
Not annotation pointcut matches dynamic proxy methods incorrectly #27119
Comments
@quaff, have you tried the following? @Around("execution(public * *(..)) and target(repository) and !@annotation(org.springframework.transaction.annotation.Transactional)") |
Yes, same result. |
Still not fixed in v6.0.6. |
target
and not @annotation
combination does not work as expected
Indeed. I've just assigned to this to the 6.1.x backlog, so that somebody from the team can pick it up. |
@sbrannen what if I used && in place of and, will it work? @Around("execution(public * *(..)) && target(repository) && !@annotation(org.springframework.transaction.annotation.Transactional)") |
I don't think it will works, |
target
and not @annotation
combination does not work as expectedPrior to this commit, AspectJExpressionPointcut doesn't fall back to original method if `!@annotation()` is used, it can cause false positive result. Fix spring-projectsGH-27119
Superseded by PR #30534. |
Prior to this commit, AspectJExpressionPointcut doesn't fall back to original method if `!@annotation()` is used, it can cause false positive result. Fix GH-27119
"target" and "not @annotation" combination not works as expected, but "target" and "@annotation" combination works fine.
test-pointcut.zip is a test project
The text was updated successfully, but these errors were encountered: