axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r434262 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
Date Thu, 24 Aug 2006 00:12:22 GMT
Author: dims
Date: Wed Aug 23 17:12:22 2006
New Revision: 434262

URL: http://svn.apache.org/viewvc?rev=434262&view=rev
Log:
One more fix for (AXIS2-1065) ADB / MTOM databinding is broken

Modified:
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java?rev=434262&r1=434261&r2=434262&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
(original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
Wed Aug 23 17:12:22 2006
@@ -511,8 +511,16 @@
                     if (schemaType instanceof XmlSchemaComplexType){
                         //set a name
                         schemaType.setName(generatedTypeName.getLocalPart());
+                        // Must do this up front to support recursive types
+                        String fullyQualifiedClassName = writer.makeFullyQualifiedClassName(schemaType.getQName());
+                        processedTypemap.put(schemaType.getQName(), fullyQualifiedClassName);
+                        
+                        BeanWriterMetaInfoHolder metaInfHolder = (BeanWriterMetaInfoHolder)
processedAnonymousComplexTypesMap.get(xsElt);
+                        metaInfHolder.setOwnQname(schemaType.getQName());
+                        metaInfHolder.setOwnClassName(fullyQualifiedClassName);
+                        
                         writeComplexType((XmlSchemaComplexType)schemaType,
-                                (BeanWriterMetaInfoHolder)processedAnonymousComplexTypesMap.get(xsElt));
+                                metaInfHolder);
                         //remove the reference from the anon list since we named the type
                         processedAnonymousComplexTypesMap.remove(xsElt);
                         String className = findClassName(schemaType.getQName(), isArray(xsElt));



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message