Hello, everybody!
I've got very strange behavior.
I have

class Account{
  @Persistent(mappedBy="account")
  List<Phone> phones = new ArrayList<Phone>();
}

and

class Phone {
    @Persistent
   Account account;
}

I added 2 phones into list, so phones = [phone1, phone2]

then I call
Phone p1 = phones.remove(0);
Phone p2 = phones.remove(0);

First at all, p1 = p2 = phone1.
debugger shows empty phone list- phones =[]
but if I save Account object and then restore it, phones is not empty,
it has one object phones=[phone2]

If I remove them by this way
Phone p1 = phones.remove(1);
Phone p2 = phones.remove(0);
 or
phones.clear();

Everything is correct.
Is it a bug?

Thank you,
   Andrey



--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to