Hi,
I'm a newbie so I'm probably overlooking something but I couldn't figure this out from the docs or archives, so here goes.


I've found that castor does not call the set-method when unmarshalling a list. Instead it seems to call the get-method and then use add() on the list returned. So in order to get Castor to work properly the get-method has to expose my internal representation.

For example

class Foo{
private List children;

public List getChildren();
public void setChildren(List c);
public void addChild(Foo c);
}

When unmarshalling a Foo with several children Castor does something like this

Foo f = new Foo();
List children= f.getChildren();
// add unmarshaled object F u sing
children.add(F);
// setChildren is not called

Am I missing something. I'm using Castor 0.9.5.1 , but I've tried it with 0.9.5.3 today and it seems to be doing the same thing. Any suggestions will be greatly appreciated.

        -Jibu



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to