Hi !

Is XFire able to handle circular references?

I've created the following class:

public class Person
{
   private String name;
   private Person likes;

   public String getName() {
       return name;
   }

   public void setName( String name ) {
       this.name = name;
   }

   public Person getLikes() {
       return likes;
   }

   public void setLikes( Person likes ) {
       this.likes = likes;
   }
}


and my service's method is like this:

   public Person testCircRef()
   {
       Person bob = new Person();
       bob.setName( "bob" );
       bob.setLikes( bob );
       return bob;
   }

It seems XFire throws the java.lang.StackOverflowError when this method is invoked.

Is it possible to let XFire know about circular references and make it process them?

Thanks in advance.




---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to