Overridden aspect method runs twice #32865
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Affects: 6.1.6
If you extend an aspect class and override its method, then this method will be called twice.
Example in kotlin:
then, when we call method annotated with
@CustomAnnotation
, we get output in console:expected output:
The call of
ReflectionUtils.doWithMethods(...)
inReflectiveAspectJAdvisorFactory#getAdvisorMethods
collects all user declared methods (methods of superclass and overridden methods), and all of them are used for making an advisors.The text was updated successfully, but these errors were encountered: