[
https://issues.apache.org/jira/browse/AXIS2-5031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sagara Gunathunga resolved AXIS2-5031.
---------------------------------------
Resolution: Cannot Reproduce
Generated codes for give WSDL file and there is no any compilation errors.
> 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
> Attachments: SampleService.zip
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]