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

                 Key: JIBX-163
                 URL: http://jira.codehaus.org/browse/JIBX-163
             Project: JiBX
          Issue Type: Bug
          Components: core
    Affects Versions: JiBX 1.1.3
            Reporter: Frank Luo


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;  
}




-- 
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to