ScheduledAnnotationBeanPostProcessor should reliably apply after AnnotationAwareAspectJAutoProxyCreator [SPR-14692] #19256
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Mischa Neumann opened SPR-14692 and commented
if you use
@EnableAspectJAutoProxy
and e.g.@EnableScheduling
you might accidentally create aScheduledMethodRunnable
with an unproxied bean.this is caused by
AnnotationAwareAspectJAutoProxyCreator
andScheduledAnnotationBeanPostProcessor
both having a default order of Ordered.LOWEST_PRECEDENCE.as the developer usually has no insight in which post processor is applied in which order and the ordering might be critical for the application to function properly, I would suggest:
Affects: 4.2.7
Issue Links:
Referenced from: commits fd21e0e, edc62be
The text was updated successfully, but these errors were encountered: