Generated-code for LinkedHashMap is missing static keyword #34659
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
theme: aot
An issue related to Ahead-of-time processing
type: bug
A general bug
Milestone
BeanDefinitionPropertyValueCodeGeneratorDelegates
has special handling for aLinkedHashMap
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 astatic
method. Given that the instance supplier isstatic
this will lead to a compilation failure.See spring-projects/spring-boot#44916 for an example.
The text was updated successfully, but these errors were encountered: