
|
If you were logged in you would be able to see more operations.
|
|
|
|
The method put(Object key, Object value) calls the method
private Object put(Object key, Object value, boolean persist)
On line 1630 of revision 382 we see:
return newEntry;
IHO words put returns the new value wrapped into an Entry object.
This is wrong. The put method of a Map should return the old value or null.
I suspect in this case null must be returned. Or otherwise the old value.
Anyway Entry object is probably not of the correct, expected, type.
|
|
Description
|
The method put(Object key, Object value) calls the method
private Object put(Object key, Object value, boolean persist)
On line 1630 of revision 382 we see:
return newEntry;
IHO words put returns the new value wrapped into an Entry object.
This is wrong. The put method of a Map should return the old value or null.
I suspect in this case null must be returned. Or otherwise the old value.
Anyway Entry object is probably not of the correct, expected, type. |
Show » |
|
Hence this issue isn't a problem now, but may result in bigger issues when a developer is using OSCache according to the docs.