cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r602046 - /incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/WrapperClassGenerator.java
Date Fri, 07 Dec 2007 09:26:01 GMT
Author: ema
Date: Fri Dec  7 01:26:01 2007
New Revision: 602046

URL: http://svn.apache.org/viewvc?rev=602046&view=rev
Log:
Fix build.

Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/WrapperClassGenerator.java

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/WrapperClassGenerator.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/WrapperClassGenerator.java?rev=602046&r1=602045&r2=602046&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/WrapperClassGenerator.java
(original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/WrapperClassGenerator.java
Fri Dec  7 01:26:01 2007
@@ -23,9 +23,7 @@
 import java.lang.reflect.Method;
 import java.lang.reflect.ParameterizedType;
 import java.lang.reflect.Type;
-import java.util.HashSet;
 import java.util.List;
-import java.util.Set;
 
 import javax.xml.bind.annotation.XmlAttachmentRef;
 import javax.xml.bind.annotation.XmlList;
@@ -50,7 +48,7 @@
 import org.objectweb.asm.Opcodes;
 
 public final class WrapperClassGenerator extends ASMHelper {
-    private Set<Class<?>> wrapperBeans = new HashSet<Class<?>>();
+    private List<Class> wrapperBeanList = new java.util.concurrent.CopyOnWriteArrayList<Class>();
     private InterfaceInfo interfaceInfo;
 
     public WrapperClassGenerator(InterfaceInfo inf) {
@@ -91,7 +89,7 @@
         return list;
     }
 
-    public Set<Class<?>> genearte() {
+    public List<Class> genearte() {
         for (OperationInfo opInfo : interfaceInfo.getOperations()) {
             if (opInfo.isUnwrappedCapable()) {
                 Method method = (Method)opInfo.getProperty(ReflectionServiceFactoryBean.METHOD);
@@ -106,7 +104,7 @@
 
             }
         }
-        return wrapperBeans;
+        return wrapperBeanList;
     }
 
     private void createWrapperClass(MessageInfo messageInfo, Method method, boolean isRequest)
{
@@ -158,7 +156,7 @@
 
         Class<?> clz = loadClass(className, method.getDeclaringClass(), cw.toByteArray());
         messageInfo.getMessagePart(0).setTypeClass(clz);
-        wrapperBeans.add(clz);
+        wrapperBeanList.add(clz);
 
     }
 



Mime
View raw message