Skip to content

AbstractAnnotationMethodEndpointMapping doesn't allow proxies [SWS-222] #373

@gregturn

Description

@gregturn

Ray Krueger opened SWS-222 and commented

The AbstractAnnotationMethodEndpointMapping looks up annotated method endpoints in the BeanPostProcessor::postProcessBeforeInitialization method. It then holds a reference to the bean inside of a "MethodEndpoint" instance.

The problem is that proxies get created AFTER the postProcessBeforeInitialization method. The lifecycle goes...

BeanPostProcessor::postProcessBeforeInitialization
AbstractAutoProxyCreator::createProxy
BeanPostProcessor::postProcessAfterInitialization

The AbstractAnnotationMethodEndpointMapping should implement postProcessAfterInitialization, not postProcessBeforeInitialization


Referenced from: commits 2e64fdf, 468b264

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions