class A
{
....
}
class B extends A
{
..
}
@WebMethod
public Collection<A> getCollection()
{
List lst = new ArrayList();
lst.add(new A());
lst.add(new B());
return lst;
}
When a get on the client the collection i expect to see the first element of type A and the second of type B.
I attached here a patch that will fix this problem. It's kind of a hack but I could not figure out a better way to handle this.
XFIRE-583(which is a duplicate of this issue). I just committed a fix for it in SVN. Cheers