axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Krumpus (JIRA)" <>
Subject [jira] Commented: (AXIS-1510) WSDL creates class that extends Object array
Date Mon, 29 Nov 2004 15:31:52 GMT
     [ ]
Michael Krumpus commented on AXIS-1510:

I agree that the Amazon schema definition is wrong because it uses "name" rather than "ref"
to declare the attribute.  But our schema correctly references the arrayType and the problem
still exists.  Here is an example of a type definition that fails to generate valid code for
the reasons described eariler.  Note the correct declaration of the array.

<xs:complexType name="ArrayOfEmployers_Type">
		<xs:restriction base="enc:Array">
				<xs:element name="employer" type="Employer_Type" maxOccurs="unbounded"/>
			<xs:attribute ref="enc:arrayType" wsdl:arrayType="Employer_Type[]"/>

> WSDL creates class that extends Object array
> --------------------------------------------
>          Key: AXIS-1510
>          URL:
>      Project: Axis
>         Type: Bug
>  Environment: Windows XP Professional, Java 1.4.2_05, 1.2 Beta2 
>     Reporter: Will Sargent

> When I use the beta2 release's version of WSDL2Java with Amazon's WSDL file:
> I get the following:
> public class DocumentDownloadAckStatusArray  extends java.lang.Object[]  implements
> ...
> }
> Since arrays cannot be extended, this code does not compile.
> Incidentally, if you type the text "Object[]" into the header or try searching for it,
you can break Jira.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message