Skip to content

Beans instanciated before BeanPostProcessors process their definitions [SPR-4273] #8951

@spring-projects-issues

Description

@spring-projects-issues

Riccardo Ferretti opened SPR-4273 and commented

In certain conditions a bean defined in a context file will be created before any BeanPostProcessor can process its definition.
This occurs when:

  • a BeanFactory bean is defined and its getObjectType() method returns null;
  • that BeanFactory is referenced as factory-bean to create another bean;

In this case the BeanFactory bean and all its depending beans will be created before any BeanPostProcessor will have processed their definitions.

The problem is also present in the latest nightly spring built (spring-framework-2.5.1-20071218-341.zip).

I will attach a sample application that shows the problem.


Affects: 2.5 final

Attachments:

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