History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XFIRE-545
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Alin Simionoiu
Votes: 3
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
XFire

Acegi CollectionType doesn't serialize correctly items that are inherited from a base class

Created: 20/Jul/06 03:56 PM   Updated: 21/Aug/06 12:08 PM
Component/s: Aegis Module
Affects Version/s: None
Fix Version/s: 1.2

Time Tracking:
Not Specified

File Attachments: 1. Text File CollectionInheritance.patch (2 kb)



 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse - 21/Aug/06 12:08 PM
Thanks, but there is a much simpler way to do this - as supplied in the patch in issue XFIRE-583 (which is a duplicate of this issue). I just committed a fix for it in SVN. Cheers