Skip to content

Generated-code for LinkedHashMap is missing static keyword #34659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
snicoll opened this issue Mar 27, 2025 · 0 comments
Closed

Generated-code for LinkedHashMap is missing static keyword #34659

snicoll opened this issue Mar 27, 2025 · 0 comments
Assignees
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

Comments

@snicoll
Copy link
Member

snicoll commented Mar 27, 2025

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.

@snicoll snicoll added theme: aot An issue related to Ahead-of-time processing type: bug A general bug labels Mar 27, 2025
@snicoll snicoll added this to the 6.2.x milestone Mar 27, 2025
@jhoeller jhoeller added the in: core Issues in core modules (aop, beans, core, context, expression) label Mar 27, 2025
@snicoll snicoll self-assigned this Mar 27, 2025
@snicoll snicoll added the for: backport-to-6.1.x Marks an issue as a candidate for backport to 6.1.x label Mar 27, 2025
@github-actions github-actions bot added status: backported An issue that has been backported to maintenance branches and removed for: backport-to-6.1.x Marks an issue as a candidate for backport to 6.1.x labels Mar 27, 2025
@snicoll snicoll modified the milestones: 6.2.x, 6.2.6 Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants