geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1536614 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
Date Tue, 29 Oct 2013 09:04:10 GMT
Author: rmannibucau
Date: Tue Oct 29 09:04:10 2013
New Revision: 1536614

URL: http://svn.apache.org/r1536614
Log:
XBEAN-253 using a copy of classInfos.values() in linkMetaAnnotations for thread safety

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java?rev=1536614&r1=1536613&r2=1536614&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/AnnotationFinder.java
Tue Oct 29 09:04:10 2013
@@ -293,7 +293,7 @@ public class AnnotationFinder implements
     }
 
     private void linkMetaAnnotations() {
-        for (ClassInfo classInfo : classInfos.values()) {
+        for (ClassInfo classInfo : classInfos.values().toArray(new ClassInfo[classInfos.size()]))
{
             if (isMetaRoot(classInfo)) {
                 try {
                     metaroots.add((Class<? extends Annotation>) classInfo.get());



Mime
View raw message