axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Created: (AXIS-1596) enum of QNames generates meaningless names
Date Fri, 08 Oct 2004 18:38:51 GMT

  A new issue has been created in JIRA.

View the issue:

Here is an overview of the issue:
        Key: AXIS-1596
    Summary: enum of QNames generates meaningless names
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
             WSDL processing

   Reporter: Simon Fell

    Created: Fri, 8 Oct 2004 11:37 AM
    Updated: Fri, 8 Oct 2004 11:37 AM
Environment: WinXP, JDK 1.4.02_5

running wsdl2java on a wsdl that includes an enumeration of qnames generates a class with
values value1, value2, value3, value4 etc.

<simpleType name="FaultCode">
 <restriction base="xsd:QName">
   <enumeration value="fns:API_CURRENTLY_DISABLED"/>
   <enumeration value="fns:API_DISABLED_FOR_ORG"/>
   <enumeration value="fns:EXCEEDED_ID_LIMIT"/>
   <enumeration value="fns:EXCEEDED_LEAD_CONVERT_LIMIT"/>
   <enumeration value="fns:EXCEEDED_MAX_SIZE_REQUEST"/>
   <enumeration value="fns:EXCEEDED_QUOTA"/>

generates a class with

    public static final javax.xml.namespace.QName _value1 = javax.xml.namespace.QName.valueOf("{}API_CURRENTLY_DISABLED");
    public static final javax.xml.namespace.QName _value2 = javax.xml.namespace.QName.valueOf("{}API_DISABLED_FOR_ORG");
    public static final javax.xml.namespace.QName _value3 = javax.xml.namespace.QName.valueOf("{}EXCEEDED_ID_LIMIT");
    public static final javax.xml.namespace.QName _value4 = javax.xml.namespace.QName.valueOf("{}EXCEEDED_LEAD_CONVERT_LIMIT");
    public static final javax.xml.namespace.QName _value5 = javax.xml.namespace.QName.valueOf("{}EXCEEDED_MAX_SIZE_REQUEST");
    public static final javax.xml.namespace.QName _value6 = javax.xml.namespace.QName.valueOf("{}EXCEEDED_QUOTA");

public static final FaultCode value1 = new FaultCode(_value1);
    public static final FaultCode value2 = new FaultCode(_value2);
    public static final FaultCode value3 = new FaultCode(_value3);
    public static final FaultCode value4 = new FaultCode(_value4);
    public static final FaultCode value5 = new FaultCode(_value5);
    public static final FaultCode value6 = new FaultCode(_value6);
names should be generated from the qname value like a string enumeration does.

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message