I would have expected an exception in the persist(personProxy) call.

Mutable proxies are bound to the RequestContext they've been .create()d or 
.edit()ed with (and the key word here is *context*, not much *request*, as a 
side note, a given proxy can have a most one mutable proxy at a time). You 
cannot, for instance, .edit() a proxy that was previously .edit()ed (or 
.create()d) in another context.

And when I say I would have expected an exception, I really mean an 
IllegalArgumentException("Attempting to edit an EntityProxy previously 
edited by another RequestContext")
(AbstractRequestContext#addInvocation calls retainArg, which calls edit() on 
the proxy — or maybe there's a bug in retainArg that it should check 
"instanceof BaseProxy" instead of EntityProxy, and your PersonProxy is a 
ValueProxy?)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to