axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Trader (JIRA)" <>
Subject [jira] [Created] (AXIS2-5031) Fails to restrict any array is a base type that has been extended
Date Wed, 11 May 2011 01:16:47 GMT
Fails to restrict any array is a base type that has been extended

                 Key: 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\
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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message