We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Jens Wilke opened SPR-17053 and commented
The implementation of Cache.putIfAbsent for JCache is not atomic as the methods contract requires.
Cache.putIfAbsent
@Override public ValueWrapper putIfAbsent(Object key, Object value) { boolean set = this.cache.putIfAbsent(key, toStoreValue(value)); return (set ? null : get(key)); }
The semantic could be implemented correctly via the Cache.invoke and the EntryProcessor. If okay I can do an PR.
Cache.invoke
EntryProcessor
This is only a very minor issue. So far I can see putIfAbsent is actually not used.
putIfAbsent
Affects: 5.0.7
The text was updated successfully, but these errors were encountered:
f79bc7b
snicoll
No branches or pull requests
Jens Wilke opened SPR-17053 and commented
The implementation of
Cache.putIfAbsent
for JCache is not atomic as the methods contract requires.The semantic could be implemented correctly via the
Cache.invoke
and theEntryProcessor
. If okay I can do an PR.This is only a very minor issue. So far I can see
putIfAbsent
is actually not used.Affects: 5.0.7
The text was updated successfully, but these errors were encountered: