]
Markus Vogt commented on ISPN-4783:
-----------------------------------
Hi Dan,
i've added the test class to this issue. The config files is attached to.
I'm using a SingleFileStore.
Regard,
Markus
Using new ArrayList<>(resultCache.values())
-------------------------------------------
Key: ISPN-4783
URL:
https://issues.jboss.org/browse/ISPN-4783
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 6.0.2.Final
Reporter: Markus Vogt
Attachments: cacheConfig.xml, ISPN4783_Test.java
Hi,
I am a little bit confused about the behaviour of getting the values from a cache and
inserting into an ArrayList.
I've putted one value into a cache, so that cache.size() is returning 1. If i now use
'new ArrayList<>(resultCache.values())', there will be two items in the
list.
By iterating over the cache, only one iteration will run... Where comes the second item
from?
Regards,
Markus