Hi
I tried to switch from beta 3c to rc1 today but encountered an error
with some of my collection mappings. The following example shows two of
the mappings producing an error:
<mapping class="Users" label="Users" name="Users" post-set="postSet">
<collection field="User">
<structure name="User" type="UserData" using="UserData"/>
</collection>
</mapping>
<mapping class="UserData" label="UserData" name="UserData">
<value field="Login" name="Login"/>
<value field="Password" name="Password"/>
</mapping>
With error:
[bind] Error running binding compiler
[bind] *** Error during code generation - please report this error on
the JiBX users list so that the condition can be caught during
validation ***
[bind] java.lang.IllegalStateException: Internal error: Expected
UserData on stack, found java.util.ArrayList
[bind] full stack:
[bind] 0: java.util.ArrayList
[bind] 1: org.jibx.runtime.impl.UnmarshallingContext
[bind] at
org.jibx.binding.classes.MethodBuilder.verifyCompatible(MethodBuilder.java:393)
[bind] at
org.jibx.binding.classes.MethodBuilder.verifyCallStack(MethodBuilder.java:495)
...
I use this collection - structure mix with "using" to have the
possibility to map collection elements whose name in the collection
differs from the name given in the mapping definition. With beta 3c this
was no problem.
regards
Michael Kurz
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users