Hi,
I'm getting the above error message at run time with I try to marshal a tree of objects. I'm using the following mappings which compile without error;
<binding>
<mapping name="rule" class="Rule">
<collection field="selectors" type="java.util.ArrayList" item-type="Subject" usage="optional"/>
</mapping>
<mapping class="ElementSelector" abstract="true">
</mapping>
<mapping name="typeSelector" class="TypeSelector" extends="ElementSelector">
</mapping>
<mapping class="Subject" abstract="true"/>
<mapping name="subjectSelector" class="SubjectSelector" extends="Subject">
<structure get-method="getElementSelector" set-method="setElementSelector" usage="optional">
<!-- This will contain an object of type TypeSelector -->
</structure>
</mapping>
</binding>
I've simplified the mapping for this posting, before you ask "why are you doing that?"
The Java objects are as follows;
ElementSelector and Subject are both interfaces
Rule, TypeSelector and SubjectSelector and concrete classes, TypeSelector implements ElementSelector and SubjectSelector implements Subject.
There appears to be a problem with the use of 2 abstract mappings, one inside the other. Has anyone else seen this kind of problem?
Paul Abbott
|
|
- [jibx-users] Error "Mapping for type SubjectSelector ... Paul Abbott
-