It seems that with a mapping like:
<binding>
<mapping name="basket" class="test.Basket">
<collection name="items" field="items">
<structure name="round">
<structure name="ball" type="test.BasketItem" using="basket-item"/>
</structure>
</collection>
</mapping><mapping name="item" label="basket-item" class="test.BasketItem"> <value style="attribute" name="order-number" field="orderNumber"/> </mapping>
</binding>
With XML as:
<basket>
<items>
<round>
<ball order-number="123"/>
<ball order-number="124"/>
</round>
</items>
</basket>Will cause:
(class: test/JiBX_MungeAdapter, method: JiBX_ATF_1_unmarshal_1_3 signature: (Ljava/
util/ArrayList;Lorg/jibx/runtime/impl/UnmarshallingContext;)V) Inconsistent stack h
eight 2 != 1
java.lang.VerifyError: (class: test/JiBX_MungeAdapter, method: JiBX_ATF_1_unmarshal
_1_3 signature: (Ljava/util/ArrayList;Lorg/jibx/runtime/impl/UnmarshallingContext;)
V) Inconsistent stack height 2 != 1
at test.Basket.JiBX_basket_binding_unmarshal_1_0(Basket.java)
at test.JiBX_basket_bindingBasket_access.unmarshal()
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unmarshallin
gContext.java:2568)
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(Unmarshalli
ngContext.java:2736)
at test.UnmarshalBasketTest.testUnmarshal(UnmarshalBasketTest.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
I would have tried the CVS version but I cannot check it out due to a lock by dsosnoski in /cvsroot/jibx/jibx/build/src/org/jibx/binding/classes.
Regards,
- Jukka -
------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
