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

ConcurrentMapCache.putIfAbsent doesn't support null values [SPR-13458] #18038

Closed
spring-projects-issues opened this issue Sep 10, 2015 · 1 comment
Assignees
Labels
in: core status: backported type: bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Sep 10, 2015

Mark Hale opened SPR-13458 and commented

The current code is

public ValueWrapper putIfAbsent(Object key, Object value) {
     Object existing = this.store.putIfAbsent(key, value);
     return toWrapper(existing);
}

but should be

public ValueWrapper putIfAbsent(Object key, Object value) {
     Object existing = this.store.putIfAbsent(key, toStoreValue(value));
     return toWrapper(existing);
}

Affects: 4.1.7, 4.2 GA, 4.2.1

Referenced from: commits df3c312, 4dee9cb

Backported to: 4.1.8

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Sep 10, 2015

Juergen Hoeller commented

Good catch! Fixed for 4.2.2 and 4.1.8 now.

Juergen

@spring-projects-issues spring-projects-issues added type: bug status: backported in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.2.2 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 status: backported type: bug
Projects
None yet
Development

No branches or pull requests

2 participants