Skip to content

AspectJ CTW aspects executed twice #32970

Closed
@MnlK

Description

Affects: 6.1.7, 6.1.8


We experience AspectJ aspects to be executed twice since updating to Spring-Boot 3.2.6 with Spring-Framework 6.1.8.

The @Aspect classes are used with AspectJ-CTW via aspectj-maven-plugin and we initialize them as spring bean with @Bean configuration.
Now they are automatically falsely initialized as Spring-AOP cglib proxy additionally to the already existing bean.

This means that calls are going first through the proxy-aspect and then through the CTW-aspect.

We also use Spring-AOP proxies for other aspects in the same project, so we can't just completely disable the AOP autoconfig.

This seems to be caused by #32793

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions