[
https://issues.jboss.org/browse/ISPN-5728?page=com.atlassian.jira.plugin....
]
Dan Berindei commented on ISPN-5728:
------------------------------------
We also need to add warnings about modifying values in-place, at least the interface level
(Cache/RemoteCache/BasicCache), but maybe at the method level as well. See
https://developer.jboss.org/message/977554
Instead, I think we can remove the paragraph about {{containsValue()}} not being supported
and just mention it with the other expensive operations.
Implement all the default methods in Java 8's Map interface
-----------------------------------------------------------
Key: ISPN-5728
URL:
https://issues.jboss.org/browse/ISPN-5728
Project: Infinispan
Issue Type: Feature Request
Components: Core
Affects Versions: 8.0.0.Final
Reporter: Dan Berindei
Assignee: Katia Aresti
Java 8 added many new methods to the {{Map}} interface. Some of them were already present
in {{ConcurrentMap}}, but others are new: {{getOrDefault()}}, {{forEach()}},
{{replaceAll()}}, {{computeIfAbsent()}}, {{computeIfPresent()}}, {{compute()}},
{{merge()}}.
We should try to write Infinispan-specific implementations wherever that would improve
correctness and/or performance.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)