You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/12/18 15:21:58 UTC

svn commit: r488276 - /webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java

Author: dims
Date: Mon Dec 18 06:21:57 2006
New Revision: 488276

URL: http://svn.apache.org/viewvc?view=rev&rev=488276
Log:
fix for AXIS2-1867 - NullPointerException generating WSDL with anonymous simple types

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

Modified: webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java?view=diff&rev=488276&r1=488275&r2=488276
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java (original)
+++ webservices/axis2/branches/java/1_1/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java Mon Dec 18 06:21:57 2006
@@ -1738,13 +1738,16 @@
         if(simpleType.getQName() != null) {
             // Must do this up front to support recursive types
             fullyQualifiedClassName = writer.makeFullyQualifiedClassName(simpleType.getQName());
+            // we put the qname to processed type map it is only named type
+            // otherwise we have to any way process that element.
+            processedTypemap.put(simpleType.getQName(), fullyQualifiedClassName);
         } else {
             fullyQualifiedClassName = writer.makeFullyQualifiedClassName(xsElt.getQName());
             simpleType.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.FAKE_QNAME,
                     new QName(xsElt.getQName().getNamespaceURI(), xsElt.getQName().getLocalPart()));
         }
         
-        processedTypemap.put(simpleType.getQName(), fullyQualifiedClassName);
+
 
         //register that in the schema metainfo bag
         simpleType.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY,



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