You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Julian Sedding (JIRA)" <ji...@apache.org> on 2016/11/22 10:41:58 UTC
[jira] [Closed] (SLING-6071) JcrModifiableValueMap#remove(key)
breaks Map contract
[ https://issues.apache.org/jira/browse/SLING-6071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Sedding closed SLING-6071.
---------------------------------
> JcrModifiableValueMap#remove(key) breaks Map<String, Object> contract
> ---------------------------------------------------------------------
>
> Key: SLING-6071
> URL: https://issues.apache.org/jira/browse/SLING-6071
> Project: Sling
> Issue Type: Bug
> Affects Versions: JCR Resource 2.7.4
> Reporter: Dirk Rudolph
> Assignee: Konrad Windszus
> Fix For: JCR Resource 2.8.2
>
>
> From the contract of Map<String, Object>
> {quote}
> Returns the value to which this map previously associated the key, or null if the map contained no mapping for the key.
> {quote}
> https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#remove-java.lang.Object-
> So my expectation is that I get the value object stored in the value map, but the implementation returns an instance of JcrPropertyMapCacheEntry.
> Instead of returning this object the value from the internal valueCache should be returned.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)