You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by David Meiklejohn <dm...@iseek.com.au> on 2008/02/08 09:32:56 UTC

Enumeration with "Factory" value causes compilation failure

Hi,

I have a simple type enumeration with a list of sub address types. The problem I am encountering is that when I put "Factory" in as a value it causes the code for the generated stub to fail at compilation. Is this a known bug? Is there a workaround that would allow me to generate an enumeration that has Factory as a valid value? This is the definition from my xsd:

    <xsd:simpleType name="SubAddressType">
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value="Apartment" />
            <xsd:enumeration value="Flat" />
            <xsd:enumeration value="Floor" />
            <xsd:enumeration value="Ground" />
            <xsd:enumeration value="House" />
            <xsd:enumeration value="Level" />
            <xsd:enumeration value="Lot" />
            <xsd:enumeration value="Pier" />
            <xsd:enumeration value="Room" />
            <xsd:enumeration value="Shop" />
            <xsd:enumeration value="Site" />
            <xsd:enumeration value="SQ" />
            <xsd:enumeration value="Studio" />
            <xsd:enumeration value="Suite" />
            <xsd:enumeration value="Tenocy" />
            <xsd:enumeration value="Unit" />
        </xsd:restriction>
    </xsd:simpleType>

Regards,

David Meiklejohn