Java 7 至少和 Java 6 一样稳定吗?

发布于 2024-12-28 21:43:57 字数 553 浏览 0 评论 0原文

我记得Java 7最初发布时,有很多建议不要将其用于任何用途,因为编译器优化中存在一些错误。这显然不仅仅是假设。从那以后我就没有密切关注事态的发展。这些问题是否已得到解决并且目前普遍认为可以安全使用?

java.com 的 此页面 让我觉得它可能还没有准备好还没有,但我不想读太多。如果还不安全,那么使用 -XX:-UseLoopPredicate 作为 VM 参数是否足够?

请注意,我指的不仅仅是特定的 Lucene 问题,而是 Java 7 的总体稳定性。Java 7 至少和 Java 6 一样稳定吗?

I remember when Java 7 was initially released, there were many suggestions not to use it for anything as there were some bugs in compiler optimizations. This was apparently not merely hypothetical. I haven't followed the situation closely since then; have these issues been worked out and it is generally considered safe to use at this point?

This page from java.com makes me think perhaps it's not quite ready yet, but I don't want to read too much into it. If it is not yet safe, is it sufficient to use -XX:-UseLoopPredicate as a VM argument?

Note that I am not only referring to the specific Lucene issue but the general stability of Java 7. Is Java 7 at least as stable as Java 6?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

风尘浪孓 2025-01-04 21:43:57

来自您链接到的文章

2011 年 10 月 28 日更新: 正如 Uwe 博客中所述,Java 7u1 已记录为包含解决这些问题的补丁

链接到的文章说:

昨晚,Oracle 更新了 Java 7u1 和 Java 6u29 的发行说明,表示他们修复了三个与 Lucene 相关的错误(以及另一个与之相关的错误)。 基于此确认,现在可以安全地将 Java 7 Update 1(及更高版本)与 Apache Lucene 和 Apache Solr 一起使用。

此答案由 The Commission For Clicking On Links For You 支付。

From the very article you linked to:

UPDATE OCTOBER 28, 2011: As noted on Uwe’s blog, Java 7u1 is documented to include the patches to address these issues.

The article that links to says:

Last night, Oracle updated the release notes of Java 7u1 and Java 6u29, stating that they fixed the three Lucene-relevant bugs (plus another one related to that). Based on this confirmation, it's now safe to use Java 7 Update 1 (and later) with Apache Lucene and Apache Solr.

This answer paid for by The Committee For Clicking On Links For You.

智商已欠费 2025-01-04 21:43:57

主要错误 Lucene 和 Solr 的 Uwe Schindler 宣布 Java7u1 已修复(阅读他的更多内容 这里。现在可以安全地使用 Java7,特别是考虑到还有 第二次更新为其发布,“提高了可靠性和性能”。

The major bug that Uwe Schindler from Lucene and Solr annouced was fixed in Java7u1 (read more from him here. I believe it's safe to use Java7 now, especially given that there has also been a second update released for it that "improves reliability and performance".

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