using types with restrcition in schema, generates protected constructor
-----------------------------------------------------------------------

         Key: AXIS-2471
         URL: http://issues.apache.org/jira/browse/AXIS-2471
     Project: Apache Axis
        Type: Bug

    Versions: 1.2.1    
 Environment: Windows XP, Intel
    Reporter: Siva


        <xs:simpleType name="restrictedLengthNonEmptyString">
                <xs:restriction base="xs:string">
                        <xs:length value="12" />
                        <xs:pattern value="[a-zA-Z].*" />
                </xs:restriction>
        </xs:simpleType>

        <!--                    
                idType                                  
        -->
        <xs:complexType name="idType">
                <xs:simpleContent>
                        <xs:extension base="typ:restrictedLengthNonEmptyString" 
/>
                </xs:simpleContent>
        </xs:complexType>

        
WSDL2Java generated class has a public constructor

 // Simple Types must have a String constructor
    public IdType(java.lang.String _value) {
        super(_value);
    }

It fails to invoke the super class with string as argument.

super(_value) - The constructor object(String) is undefined.

I don't see the super class 'restrictedLengthNonEmptyString' generated.

-- 
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

Reply via email to