-
Bug
-
Resolution: Done
-
Blocker
-
10.0.0.Final
-
None
Our spring integration makes use of the NullValue.NULL singleton when wrapping null values, however the singleton semantics are not respected when Java Serialization is used as this was previously enforced by a Externalizer implementation.
Therefore, the NullValue wrapper is never unwrapped.
.SpringCache
private ValueWrapper wrap(Object value) {
if (value == null)
if (value == NullValue.NULL) { return NullValue.NULL; }
return new SimpleValueWrapper(value);
}
private <T> T unwrapNull(Object value) {
if (value == NullValue.NULL) { return null; }
return (T) value;
}