Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2
-
Fix Version/s: 1.3
-
Component/s: XML, XML code generator
-
Labels:None
-
Environment:Java :D
-
Testcase included:yes
-
Number of attachments :
Description
I am experiencing problems with nillable elements. The behaviour of Castor is not consistent between xs:string and xs:integer elements. While xs:string elements are defaulted to null, as expected, xs:integer defaults to 0 even if the element is declared as nillable and nill.
I haven't been able to track down the issue in the code, but I'm attaching a simple test case showing my issue there.