Hi Yuval,

If you can show the binding definition you're using for A and B we can 
probably help you out.

- Dennis

Dennis M. Sosnoski
XML and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Carmel, Yuval wrote:
> Hello,
> I am having issues mapping a generics class with JibX.
> For example, I have defined the following 2 classes:
> Class A<T>{
> T t;
> T getData(){ return t;}
> …
> }
> Class B{
> …
> }
> How would I go to map the “data” field in A<B> (data is of type B)?
> When I am trying to map object A with structure B for “data” field, I 
> am getting an error that it can’t assign instance of type B to 
> java.lang.Object.
> Thanks,
> Yuval
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>   

------------------------------------------------------------------------------
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to