You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by am...@apache.org on 2007/11/30 10:52:55 UTC
svn commit: r599759 -
/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
Author: amilas
Date: Fri Nov 30 01:52:45 2007
New Revision: 599759
URL: http://svn.apache.org/viewvc?rev=599759&view=rev
Log:
we have to test the minOccurs not maxOccurs
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=599759&r1=599758&r2=599759&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 Fri Nov 30 01:52:45 2007
@@ -549,7 +549,7 @@
// this details only needed by the unwrappig to set the complex type
if (options.isUseWrapperClasses() &&
PrimitiveTypeFinder.isPrimitive(className) &&
- ((xsElt.getMaxOccurs() == 0) || (xsElt.isNillable()))) {
+ ((xsElt.getMinOccurs() == 0) || (xsElt.isNillable()))) {
className = PrimitiveTypeWrapper.getWrapper(className);
}
schemaType.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, className);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org