1

如果我有 PersonProxy {String getName(); PersonProxy getParent();} 我尝试通过 RequestFactory 提供的 Request 对象从服务器加载它,它因堆栈溢出错误而崩溃。它试图无限期地调用 hashCode()。

任何想法为什么会发生这种情况?

谢谢。

4

1 回答 1

2

您的 PersonProxy 关系中是否存在循环?ValueProxies 使用其组件属性的 hashCode() 和 equals()。ValueProxy 类型并不是真正打算用于复杂的图结构,因为它们对短路图遍历没有标识语义。

于 2011-04-22T13:56:34.130 回答