<div class="gmail_quote">On Wed, Jun 27, 2012 at 3:36 PM, Adrian Nistor <span dir="ltr">&lt;<a href="mailto:anistor@redhat.com" target="_blank">anistor@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yup.<br>
<br>
No iteration on elements here. Copying is done atomically because it is<br>
based on ArrayList&#39;s constructor which uses Collection.toArray() which<br>
is also atomic in this case because the passed in List happens to be<br>
wrapped by Collections.synchronizedList() in all usages. I tested this<br>
and it fixes the issue.<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br>You should also add a comment with this info to the pull req, otherwise the maintainers of surefire might reject it :)<br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="HOEnZb"><div class="h5">
On 06/27/2012 03:13 PM, Sanne Grinovero wrote:<br>
&gt; Are you sure that resolved the problem?<br>
&gt;<br>
&gt; When you wrap a list into a new ArrayList, it might still need to<br>
&gt; iterate on it&#39;s elements, depending on which implementation of List is<br>
&gt; being used.<br>
&gt;<br>
&gt; So that might indeed fix it but depends on the List implementation :-(<br>
&gt;<br>
&gt; On 27 June 2012 13:03, Sanne Grinovero &lt;<a href="mailto:sanne@infinispan.org">sanne@infinispan.org</a>&gt; wrote:<br>
&gt;&gt; On 27 June 2012 12:51, Adrian Nistor &lt;<a href="mailto:anistor@redhat.com">anistor@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt; I&#39;ve just submitted the surefire ConcurrentModificationException issue<br>
&gt;&gt;&gt; (<a href="http://jira.codehaus.org/browse/SUREFIRE-879" target="_blank">http://jira.codehaus.org/browse/SUREFIRE-879</a>) and also created a pull<br>
&gt;&gt;&gt; request for the (trivial) fix. Let&#39;s hope they will be quick to handle<br>
&gt;&gt;&gt; it. This has the potential of eliminating many of our random test failures.<br>
&gt;&gt; Awesome!<br>
&gt; _______________________________________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</div></div></blockquote></div><br>