Skip to content

BeanPostProcessor callbacks don't work as expected for @PostConstruct annotated methods [SPR-6066] #10734

@spring-projects-issues

Description

@spring-projects-issues

Joris Kuipers opened SPR-6066 and commented

Creating this issue per Juergen's request:
because support for @PostConstruct is implemented using a BeanPostProcessor, the BPP.postProcessBeforeInitialization method is invoked after the actual initialization method that has the annotation. This has always been the case since support for JSR-250 was added I think, but no issue was ever created to make sure to track this deficiency.
Added a simple test case that shows the described behavior,


Affects: 2.5.6, 3.0 M4

Attachments:

Referenced from: commits 7428014, fcaf692, c495cbb

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions