Compare commits

...

2 Commits

Author SHA1 Message Date
mstrankowski
a14648e738 Re-adding method for map retrieval to facilitate previously existing tests 2023-01-09 20:27:59 +01:00
mstrankowski
03ac671ac4 Manual moving of proposed changes, not verified if moved properly yet 2023-01-09 19:13:18 +01:00
2 changed files with 706 additions and 193 deletions

View File

@@ -2114,11 +2114,7 @@ public abstract class AbstractNodeDAOImpl implements NodeDAO, BatchingDAO
else
{
Map<QName, Serializable> props = getNodePropertiesCached(nodeId);
// Wrap to ensure that we only clone values if the client attempts to modify
// the map or retrieve values that might, themselves, be mutable
props = new ValueProtectingMap<QName, Serializable>(props, NodePropertyValue.IMMUTABLE_CLASSES);
// The 'get' here will clone the value if it is mutable
value = props.get(propertyQName);
value = ValueProtectingMap.protectValue(props.get(propertyQName), NodePropertyValue.IMMUTABLE_CLASSES);
}
// Done
if (isDebugEnabled)