运行 Javadoc 时出现 Stackoverflow 错误
尝试对我组的应用程序项目进行 Javadoc,但出现了 stackoverflowerror。尝试增加堆空间,但这似乎没有帮助。我用谷歌搜索了这个问题,但我看到的只是有关使用递归的应用程序的问题和答案。还有其他人在使用 Javadoc 时遇到过这个问题吗?更重要的是,有人知道为什么 Javadoc 会这样做吗?
Attempted to Javadoc my group's App project, but got stackoverflowerror. Tried increasing heap space, but that did not seem to help. I've googled this question, but all I've seen are questions and answers about apps that use recursion. Anybody else encountered this problem with Javadoc? More to the point, does anybody know why Javadoc would do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果出现 StackOverflowError,增加堆空间根本没有帮助,因为您没有“HeapOverflowError”(通常表现为 OutOfMemoryError)。
相反,要增加堆栈大小,请使用
-Xss
VM 选项(即在所有其他选项和参数之前使用-J...
传递)。请注意,通常堆栈溢出错误是程序中存在错误的迹象,在您的情况下,这将是 Javadoc。如果您还没有尝试,请尝试更新版本的 JDK。
In case of a StackOverflowError, increasing the Heap space does not help at all, as you don't have a "HeapOverflowError" (usually manifested as OutOfMemoryError).
Increase the stack size instead, use the
-Xss
VM option (i.e. passed with-J...
before all other options and arguments).Note that normally a stack overflow error is a sign of a bug in the program, which would be Javadoc in your case. Try a newer version of the JDK, if you don't do already.