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

LinkedCaseInsensitiveMap duplicate element with put() [SPR-9754] #14388

Closed
spring-projects-issues opened this issue Sep 4, 2012 · 0 comments
Closed
Assignees
Labels
in: core type: bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Sep 4, 2012

Dan Iele opened SPR-9754 and commented

I try to use LinkedCaseInsensitiveMap and I expected that using put() method only one element will be created, but it is not true:

public static void main(String[] args) {
LinkedCaseInsensitiveMap<String> map = new LinkedCaseInsensitiveMap<String>();
map.put("aa", "a1");
map.put("Aa", "a2");
map.put("aA", "a3");
map.put("AA", "a4");
System.out.println(map);
}

Output: {aa=a1, Aa=a2, aA=a3, AA=a4} <-- here the problem

Doing: map.get("aA") I got "a4"


Affects: 3.0.7, 3.1.2

Referenced from: commits 25a806a, 8f12d98

@spring-projects-issues spring-projects-issues added type: bug in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.1.3 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: bug
Projects
None yet
Development

No branches or pull requests

2 participants