users@jaxb.java.net

newbe - missing defaultValue on attributes

From: Mike Skells <mike.skells_at_validsoft.com>
Date: Tue, 16 Sep 2008 04:57:21 -0700 (PDT)

Hi,
I am using 2.1.8 and I am missing default values from attributes.

when I generate with this XSD

                
                        
                                
                        
                        
                
        

 I get

public class Def {

    @XmlElement(defaultValue = "true")
    protected Boolean test2;
    @XmlAttribute
    protected Boolean test1;
...
}

I would expect to see
@XmlAttribute(defaultValue = "true")
    protected Boolean test1;


Have I missed something.
-- 
View this message in context: http://www.nabble.com/newbe---missing-defaultValue-on-attributes-tp19510263p19510263.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.