Skip to content

Generated-code for LinkedHashMap is missing static keyword #34659

Closed
@snicoll

Description

@snicoll

BeanDefinitionPropertyValueCodeGeneratorDelegates has special handling for a LinkedHashMap and it creates a method for a more complex body.

However, the generated method does not have a static keyword so it can't be invoked from a static method. Given that the instance supplier is static this will lead to a compilation failure.

See spring-projects/spring-boot#44916 for an example.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestheme: aotAn issue related to Ahead-of-time processingtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions