[infinispan-issues] [JBoss JIRA] (ISPN-4783) Using new ArrayList<>(resultCache.values())

RH Bugzilla Integration (JIRA) issues at jboss.org
Wed Nov 19 19:33:42 EST 2014


    [ https://issues.jboss.org/browse/ISPN-4783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021383#comment-13021383 ] 

RH Bugzilla Integration commented on ISPN-4783:
-----------------------------------------------

Dave Stahl <dstahl at redhat.com> changed the Status of [bug 1160416|https://bugzilla.redhat.com/show_bug.cgi?id=1160416] from MODIFIED to ON_QA

> 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, 7.0.0.CR2
>            Reporter: Markus Vogt
>            Assignee: William Burns
>             Fix For: 7.0.0.Final
>
>         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



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the infinispan-issues mailing list