You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/10/24 11:25:23 UTC

DO NOT REPLY [Bug 13923] New: - default value for attributes ignored in generated serialization class

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13923>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13923

default value for attributes ignored in generated serialization class

           Summary: default value for attributes ignored in generated
                    serialization class
           Product: Axis
           Version: 1.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: Andre.Kramer@computer.org


The XML schema attribute "reset" in following complexType does not have an 
initalizer in generated class, even though the wsdl schema type defaults to 
true.

<complexType name="Property">
    ...
    <attribute name="reset" type="xsd:boolean" default="true"/>
    ...
</complexType>

generates:

/**
 * Property.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package org.oasis_open.www;

public class Property  implements java.io.Serializable {
    ...
    private boolean reset;  // attribute

    public Property() {
    }
...
(same if default is false)