Affects: Spring Boot 2.3.5.RELEASE
There appears to be a bug in spring aop - see this stackoverflow issue, and my MCVE.
TLDR: when in an around advice, if I pass joinPoint::proceed
(where joinPoint
is the injected ProceedingJoinPoint
) as a lambda or a method reference into another method (foo
) of another class (Bar
), an advice with a pointcut matching Bar::foo
intercepts joinPoint.proceed()
(NOT Bar::foo
).