-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Generated-code for LinkedHashMap is missing static keyword #34659
Copy link
Copy link
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestheme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: bugA general bugA general bug
Milestone
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestheme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: bugA general bugA general bug
Type
Fields
Give feedbackNo fields configured for issues without a type.
BeanDefinitionPropertyValueCodeGeneratorDelegateshas special handling for aLinkedHashMapand it creates a method for a more complex body.However, the generated method does not have a
statickeyword so it can't be invoked from astaticmethod. Given that the instance supplier isstaticthis will lead to a compilation failure.See spring-projects/spring-boot#44916 for an example.