开发者

GWT embedded ValueProxy 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜