Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 86131 invoked from network); 27 May 2005 14:13:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 May 2005 14:13:25 -0000 Received: (qmail 52487 invoked by uid 500); 27 May 2005 14:13:17 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 52444 invoked by uid 500); 27 May 2005 14:13:16 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 52415 invoked by uid 99); 27 May 2005 14:13:16 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 27 May 2005 07:13:14 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id E229E181 for ; Fri, 27 May 2005 16:12:53 +0200 (CEST) Message-ID: <1538102062.1117203173891.JavaMail.jira@ajax.apache.org> Date: Fri, 27 May 2005 16:12:53 +0200 (CEST) From: "Hans (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-2020) wsdl2java does not generate array of wrappers for array of nillable primitives In-Reply-To: <177725960.1117193997333.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-2020?page=comments#action_66456 ] Hans commented on AXIS-2020: ---------------------------- Traced the problem to the getWrapperType method in org.apache.axis.wsdl.toJava.Utils.java. It does not take array subscripts ("[]") into considation when retrieving the wrappertype. I will submit a patch. > wsdl2java does not generate array of wrappers for array of nillable primitives > ------------------------------------------------------------------------------ > > Key: AXIS-2020 > URL: http://issues.apache.org/jira/browse/AXIS-2020 > Project: Axis > Type: Bug > Components: WSDL processing > Versions: 1.2 > Reporter: Hans > > For the following xsd construct: > > > nillable="true" minOccurs="0" maxOccurs="unbounded"/> > > > > > > > > nillable="true" minOccurs="0" maxOccurs="unbounded"/> > > > > > wsdl2java from Axis 1.1 generates a Java Class like: > class StructureType implements Serializable { > private Integer[] fld1; > private Integer[] fld2; > ... > But in Axis 1.2 the following is generated: > class StructureType implements Serializable { > private int[] fld1; > private int[] fld2; > ... > This is incorrect - wrapper types should have been used for fld1 and fld2. > Also reproducable on the nightly 1.2.1 build of 27 may 2005. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira