JiBX
  1. JiBX
  2. JIBX-158

optional structures in unordered mapping not optional

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major 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 :
      1

      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.

        Activity

        Dennis Sosnoski made changes -
        Field Original Value New Value
        Assignee Dennis Sosnoski [ dsosnoski ]
        Hide
        Dennis Sosnoski added a comment -

        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.

        Show
        Dennis Sosnoski added a comment - 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.
        Dennis Sosnoski made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s JiBX 1.1.4 [ 13203 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Hide
        Dennis Sosnoski added a comment -

        Released in 1.1.5

        Show
        Dennis Sosnoski added a comment - Released in 1.1.5
        Dennis Sosnoski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Michael Kurz
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: