[
https://issues.apache.org/jira/browse/AXIS2-5031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031502#comment-13031502
]
Tom Trader commented on AXIS2-5031:
-----------------------------------
Here's a zip file with wsdl and xsd
> Fails to restrict any array is a base type that has been extended
> -----------------------------------------------------------------
>
> Key: AXIS2-5031
> URL: https://issues.apache.org/jira/browse/AXIS2-5031
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5.4
> Environment: Windows 7
> Reporter: Tom Trader
>
> Attempting to generate stub using wsdl2java and ADB
> Fails against attached wsdl/schema
> The problem is that the base type has an element of maxOccurs="unbounded"
> This base type is extended.
> This extended type is then restricted where the maxOccurs="1"
> This causes the following error when trying to compile the generated stub:
> [javac]
> D:\Useful\SampleService\Axis2\src\sampleservice\axis2stub\SecondRestrictedExtArrayType.java:52:
> getA() in sampleservice.
> axis2stub.SecondRestrictedExtArrayType cannot override getA() in
> sampleservice.axis2stub.FullArrayType; attempting to use incompatib
> le return type
> [javac] found : java.lang.String
> [javac] required: java.lang.String[]
> [javac] public java.lang.String getA(){
> [javac] ^
> This is because the super class has it as an array, whereas the subclass
> doesn't
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]