[
http://jira.codehaus.org/browse/JIBX-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski resolved JIBX-193.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: JiBX 1.1.2)
JiBX 1.1.6
The current code has this check removed, since it's no longer needed.
> CLONE -All items in unordered structure must be optional at tag "structure"
> ---------------------------------------------------------------------------
>
> Key: JIBX-193
> URL: http://jira.codehaus.org/browse/JIBX-193
> Project: JiBX
> Issue Type: Bug
> Components: core
> Affects Versions: JiBX 1.1
> Reporter: lokesh
> Assignee: Dennis Sosnoski
> Fix For: JiBX 1.1.6
>
>
> I am trying to use flexible="true", which requires ordered="false". When
> setting these 2 attributes on a mapping or structure tag, it throws an
> exception if a nested structure element is not optional (taken from the
> example in the tutorial):
> <?xml version="1.0" encoding="UTF-8"?>
> <binding>
> <mapping name="customer" class="Customer" ordered="false"
> flexible="true">
> <structure name="person" field="person" ordered="false"
> flexible="true">
> <value name="cust-num" field="customerNumber"/>
> <value name="first-name" field="firstName"/>
> <value name="last-name" field="lastName"/>
> </structure>
> <value name="street" field="street"/>
> <value name="city" field="city"/>
> <value name="state" field="state"/>
> <value name="zip" field="zip"/>
> <value name="phone" field="phone"/>
> </mapping>
> </binding>
> [bind] *** Error during code generation - please enter a bug report for this
> error in Jira if the problem is not li
> sted as fixed on the online status page ***
> [bind] org.jibx.runtime.JiBXException: All items in unordered structure must
> be optional at tag "structure"(line 4,
> col 75, in mapping/TestMapping.xml)
> [bind] at
> org.jibx.runtime.impl.UnmarshallingContext.throwStartTagException(Unknown
> Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs