开发者

GWT embedded ValueProxy stack overflow error

开发者 https://www.devze.com 2023-02-27 02:17 出处:网络
If I have a PersonProxy {String getName(); PersonProxy getParent();} and I try to load it from server through a RequestFactory provided Request object, it crashes with stack overflow error.

If I have a PersonProxy {String getName(); PersonProxy getParent();} and I try to load it from server through a RequestFactory provided Request object, it crashes with stack overflow error. It tries to cal开发者_StackOverflow中文版l hashCode() indefinitely.

Any ideas why is this happening?

Thanks.


Is there a cycle in your PersonProxy relationships? ValueProxies use their component properties' hashCode() and equals(). The ValueProxy type isn't really intended for use in complex graph structures, since they have no identity semantics to short-circuit graph traversals.

0

精彩评论

暂无评论...
验证码 换一张
取 消