JiBX
  1. JiBX
  2. JIBX-163

binding fails if both attribute and element are used, ordered="false" and there is an inheritance.

    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.5
    • Component/s: core
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      This binding fails:

      <binding forwards="false" value-style="attribute">
      <mapping name="TestClass" class="com.TestClass"
      extends="com.TestBase" ordered="false">
      <value style="element" name="paramC" field="paramC" usage="optional"/>
      <value name="paramD" field="paramD" />
      <structure name="TestBase" map-as="com.TestBase"/>
      </mapping>

      <mapping abstract="true" class="com.TestBase" ordered="false">
      <value style="element" name="paramA" field="paramA" usage="optional"/>
      <value name="paramB" field="paramB" usage="optional"/>
      </mapping>
      </binding>

      //////////////////////////////////////Here are the java files/////////////////////////////////
      package com;
      public class TestBase {
      public String paramA;
      public String paramB;
      }

      /////////////////////////////////////////////////////////////////////////////////
      package com;

      public class TestClass extends TestBase {
      public String paramC;
      public String paramD;
      }

        Activity

        Hide
        Dennis Sosnoski added a comment -

        Fixed in 1.1.5

        Show
        Dennis Sosnoski added a comment - Fixed in 1.1.5

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Frank Luo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: