Skip to content

Consistent validation of annotated methods behind AOP proxies [SPR-13816] #18389

@spring-projects-issues

Description

@spring-projects-issues

Piotr Findeisen opened SPR-13816 and commented

steps to reproduce
  • annotate a private method with @EventListener
  • make sure the bean is proxied, e.g. due to @Transactional
  • publish event
observed
  • the non-overriden method on proxy is called
expected
  • either this is supported and the method is called on actual instance, not on the proxy (like @Autowired)
  • OR forbidden, detected and reported with an explicit exception during context start

Affects: 4.2.2

Issue Links:

Referenced from: commits 826a00a, 470ea97

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions