Hi Thobias,

my example:

  public SerializableObject getSerializableObject() {

    SerializableObject object = new SerializableObject();

    object.add(new SerializableObject());

    return object;

  }

failed with these objects. As you can see, there is no circle, Child
and Parent are different objects.

Regards,
Mark


On 19 Okt., 23:51, Thoka <thobias.karls...@gmail.com> wrote:
> Hi, perhaps a stupid question, have you tried putting in checks for
> the parameters? Like:
>
>   public void add(SerializableObject child) {
>     if (child == this) {
>        throw new IllegalArgumentException("Cannot add self as
> child!");
>     }
>     child.setParent(this);
>     children.add(child);
>   }
>
> ...and same for setParent(...), this does not sound like a GWT
> issue. :)
>
> Best regards,
>
> Thobias
>
> On 8 Okt, 08:52, futzi <mgoer...@googlemail.com> wrote:
>
> > Hi Bob,
>
> > do you have anything new concerning my problem with tree objects and
> > rpc?
>
> > Regards,
> > Mark
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to