Hi All,
 
I don't know if this has been fixed, but anyway. There's a bug in org.exolab.castor.xml.schema.reader.AttributeUnmarshaller (Castor 0.9.3), when it complains that the default value for an attribute may be specified only when the attribute is optional although the attribute was declared as optional. The line with the bug is 135:
 
if (_attribute.isDefault() && (use != AttributeDecl.USE_OPTIONAL) )
 
I changed it to:
 
if (_attribute.isDefault() && !use.equals(AttributeDecl.USE_OPTIONAL) )
 
and it works fine now.
 
Cheers,
Alex

-------------------------------------------

Tesla: �Science is but a perversion of itself unless it has as its ultimate goal the betterment of humanity"

Privileged or confidential information may be contained in this message. If this message was not intended for you, destroy it and notify us immediately.Opinions, conclusions, recommendations, and other information presented in this message are not given or necessarily endorsed by my employer or firm.

 

Reply via email to