Skip to content

AOP pointcut erroneously matching ProceedingJoinPoint.proceed when called from within another advised bean #26068

@moxaj

Description

@moxaj

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).

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions