[
https://issues.apache.org/jira/browse/SLING-6071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15552255#comment-15552255
]
ASF GitHub Bot commented on SLING-6071:
---------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/sling/pull/175
> 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)