运行 Javadoc 时出现 Stackoverflow 错误

发布于 2024-12-18 20:05:59 字数 163 浏览 3 评论 0原文

尝试对我组的应用程序项目进行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

始终不够 2024-12-25 20:05:59

如果出现 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文