Skip to content

ConfigurationClassParser.invokeAwareMethods(…) does not consider EnvironmentAware [SPR-11744] #16366

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-11744 and commented

In Spring 3.2.x ConfigurationClassParser.invokeAwareMethods(…) does not check for the registrar implementing EnvironmentAware. Thus registrars implementing that interface and relying on the Environment being non-null on the call to registerBeanDefinitions(…) will fail.

This works on 4.0.x, as the method has the additional check and will invoke setEnvironment(…).


Affects: 3.2.8

Issue Links:

  • DATACMNS-494 Remove defaulting of Environment from RepositoryBeanDefinitionRegistrarSupport ("is depended on by")

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