Skip to content

Optional autowire of Map<String, BeanType> accidentally falls back to unrelated Map<String, String> [SPR-13963] #18536

Closed
@spring-projects-issues

Description

Phil Webb opened SPR-13963 and commented

Upgrading Spring Boot to Framework to 4.3is not currently possible due to failure in EndpointAutoConfigurationTests.

It appears that this line in EndpointAutoConfiguration:

@Autowired(required = false)
private Map<String, HealthIndicator> healthIndicators = new HashMap<String, HealthIndicator>();

No longer works correctly as String values end up in the map.

I believe that commit 3f74a74481d is ultimately responsible as rolling this back seems to fix the issue.


Affects: 4.3 RC1

Issue Links:

Referenced from: commits 48ee9b5, 1b53edf

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