Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 94322 invoked from network); 30 Nov 2007 09:53:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2007 09:53:17 -0000 Received: (qmail 39980 invoked by uid 500); 30 Nov 2007 09:53:05 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 39867 invoked by uid 500); 30 Nov 2007 09:53:05 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 39856 invoked by uid 500); 30 Nov 2007 09:53:05 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 39851 invoked by uid 99); 30 Nov 2007 09:53:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 01:53:05 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 09:52:53 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BFDAA1A9832; Fri, 30 Nov 2007 01:52:55 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r599759 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java Date: Fri, 30 Nov 2007 09:52:55 -0000 To: axis2-cvs@ws.apache.org From: amilas@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071130095255.BFDAA1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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