Hi
I have a class which looks a bit like:
public class Layer
{
/** The list of Widgets associated with this layer. */
private Collection<Widget> widgets = null;
...
And I have a factory method of:
private static Collection<Widget> WidgetCollectionFactory()
{
return new Vector<Widget>();
}
My binding looks like:
<mapping name="Layer" class=".........Layer">
<collection
field="widgets"
item-type="...............Widget"
factory=".........................Layer.WidgetCollectionFactory">
</collection>
...
</mapping>
The binding compiles and the marshalling works correctly, but when I
unmarshall [passing in _exactly_ what jibx passed out] I receive an
error when unmarshalling the next element.
If I remove the <collection ... /> binding elements which previously
errored unmarshall as expected.
Any tips or pointers. Has anyone created binding for java generics?
Thanks
Jon
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users