Skip to content
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

CollectionFactory.createMap(HashMap.class, 0) now returns a LinkedHashMap rather than a HashMap #30596

Closed
wilkinsona opened this issue Jun 5, 2023 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: regression A bug that is also a regression
Milestone

Comments

@wilkinsona
Copy link
Member

Affects: 6.0.9 and 5.3.28-SNAPSHOT

The changes made in 0211016 mean that CollectionFactory will now return a LinkedHashMap when a map of type HashMap is requested. This could lead to subtle regressions as the iteration order of the returned map will be different.

@jhoeller jhoeller self-assigned this Jun 5, 2023
@jhoeller jhoeller added type: regression A bug that is also a regression in: core Issues in core modules (aop, beans, core, context, expression) labels Jun 5, 2023
@jhoeller jhoeller added this to the 6.0.10 milestone Jun 5, 2023
jhoeller added a commit that referenced this issue Jun 5, 2023
mdeinum pushed a commit to mdeinum/spring-framework that referenced this issue Jun 29, 2023
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) type: regression A bug that is also a regression
Projects
None yet
Development

No branches or pull requests

2 participants