Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JiBX 1.1.3
-
Fix Version/s: JiBX 1.1.4
-
Component/s: core
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
When I have an unordered mapping with flexible="true" structures with usage="optional" are not optional. On unmarshalling jibx throws an exception ("Missing required element") if the optional element is not present. Optional values seem to work correctly.
The attached zip file contains a small program demonstrating the bug.
Fixed this in the current code, available as the 1.1.4-SNAPSHOT jars on http://jibx.sourceforge.net/maven/jibx/jars/ I'm a little concerned by possible side-effects, so I'm hoping people will try out the change before an official release.