[
https://issues.apache.org/jira/browse/SLING-6071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dirk Rudolph updated SLING-6071:
--------------------------------
Summary: JcrModifiableValueMap#remove(key) breaks Map<String, Object>
contract (was: JcrModifiableValueMap#remove(key) break Map<String, Object>
contract)
> 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
>
> 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)