奇数和偶数 Java 更新之间有什么区别?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33260616/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 14:31:26  来源:igfitidea点击:

What's the difference between odd and even Java updates?

javaversionoraclejdk

提问by MorrisIriga

I have JDK 8u60 installed. I checked the Oracle websitetoday and they have released two versions simultaneously: 8u65and 8u66. Both are public release versions.

我安装了 JDK 8u60。我今天查看了Oracle 网站,他们同时发布了两个版本:8u658u66。两者都是公开发布版本。

  • Why did they release two versions simultaneously?
  • What conditions/reasons would make one choose one over the other?
  • 为什么他们同时发布两个版本?
  • 什么条件/原因会让一个人选择一个?

采纳答案by Zac Thompson

From the download page(emphasisadded):

下载页面强调):

Java SE 8u65 includes important security fixes. Oracle strongly recommends that all Java SE 8 users upgrade to this release. Java SE 8u66 is a patch-set update, including all of 8u65 plus additional features (described in the release notes).

Java SE 8u65 包括重要的安全修复。Oracle 强烈建议所有 Java SE 8 用户升级到此版本。Java SE 8u66 是一个补丁集更新,包括所有 8u65以及附加功能(在发行说明中描述)。

Oracle often does this. It's all about how you as a customer want to handle the risks.

Oracle 经常这样做。这完全取决于您作为客户希望如何处理风险。

Users should only use the corresponding PSU release if they are being impacted by one of the additional bugs fixed in that version as noted in the release notes.

如发行说明中所述,用户应仅在受到该版本中修复的其他错误之一的影响时才使用相应的 PSU 版本。

8u65 has security fixes and sets a new security "baseline"for companies to achieveJava 8 applications. 8u66 has those same security updates, plus additional bug fixes. However, even bug fixes can sometimes cause changes to behaviour that present compatibility issues for users. Thus the changes in 8u66 are optional(note that the baseline linked above is still 1.8.0_65, and companies that want more stability in their platform might well prefer to only apply the security fixes, which are necessary.

8u65 具有安全修复程序,并为公司实现Java 8 应用程序设置了新的安全“基线”。8u66 具有相同的安全更新,以及额外的错误修复。但是,即使是错误修复有时也会导致行为发生变化,从而为用户带来兼容性问题。因此,8u66 中的更改是可选的(请注意,上面链接的基线仍然是 1.8.0_65,希望平台稳定性更高的公司可能更愿意仅应用必要的安全修复程序。

Oracle is certainly not obligated to split their updates in this fashion, but I'm sure some of their most risk-averse customers are glad to have the option.

Oracle 当然没有义务以这种方式拆分他们的更新,但我相信他们的一些最厌恶风险的客户很高兴有这个选择。

回答by MindTaffy

If you have an existing project use 8u65. If you are starting one from scratch use 8u66. I'm installing NetBeans 8.1 so I'm using 8u66 in case NB8.1 code has any of the 15 bugs in 8u65 which are not solved in 8u66.

如果您有现有项目,请使用 8u65。如果您从头开始使用 8u66。我正在安装 NetBeans 8.1,所以我使用 8u66,以防 NB8.1 代码存在 8u65 中的 15 个错误中的任何一个,而这些错误在 8u66 中没有解决。

回答by Necronomicon

I found this info on Haven and Hearth:

我在 Haven 和 Hearth 上找到了以下信息:

u73(-b02) is the public release
u74(-b02) is public Bundled Patch Release (contains extra non security related fixes)

u73(-b02) 是公开发行版
u74(-b02) 是公开捆绑补丁发行版(包含额外的非安全相关修复)

I'm thinking you'd only need to download 74, then.

我想你只需要下载 74,然后。

回答by Guy Gascoigne-Piggford

This is the official Oracle's answer:

这是Oracle 的官方回答

Java CPU and PSU Releases Explained

Starting with the release of Java SE 7 Update 71 (Java SE 7u71) in October 2014, Oracle will release a Critical Patch Update (CPU) at the same time as a corresponding Patch Set Update (PSU) for Java SE 7.


Which Java version should I choose: the CPU or the PSU?

Oracle strongly recommends that all Java SE users upgrade to the latest CPU release available for a release family. Most users should choose the CPU release.

Users should only use the corresponding PSU release if they are being impacted by one of the additional bugs fixed in that version as noted in the release notes.

The subsequent CPU release will contain all of the fixes from the current PSU. For this reason, organizations should test the current PSU in their environment in anticipation of these fixes being included in the next CPU.

What is the difference between a Java CPU and PSU release?

Java SE Critical Patch Updates (CPU) contain fixes to security vulnerabilities and critical bug fixes. Oracle strongly recommends that all Java SE users upgrade to the latest CPU releases as they are made available. Java SE CPU releases are odd numbered versions (i.e. 7u71, 7u65 – see more on Java SE version numbering schemes here).

Java SE Patch Set Updates (PSU) contain all of fixes in the corresponding CPU, as well as additional non-critical fixes. Java PSU releases should only be used if you are being impacted by one of the additional bugs fixed in that version. The release notes call out the additional fixes available in Java SE PSU releases.

Is the cadence of CPU releases changing?

As before, Java SE CPU releases are scheduled for release on the Tuesday closest to the 17th day of January, April, July and October under the normal Oracle Critical Patch Update schedule.

Starting in October 2014 with the release of Java SE 7u71 (CPU) and Java SE 7u72 (PSU), Oracle plans to additionally release a corresponding PSU release along with each CPU release for Java SE 7. PSU releases provide organizations and developers with access to non-critical fixes in addition to the critical fixes contained in the corresponding CPU.

Java CPU 和 PSU 版本说明

从 2014 年 10 月发布 Java SE 7 Update 71 (Java SE 7u71) 开始,Oracle 将在发布 Java SE 7 的相应补丁集更新 (PSU) 的同时发布重要补丁更新 (CPU)。


我应该选择哪个 Java 版本:CPU 还是 PSU?

Oracle 强烈建议所有 Java SE 用户升级到可用于发布系列的最新 CPU 版本。大多数用户应该选择 CPU 版本。

如发行说明中所述,用户应仅在受到该版本中修复的其他错误之一的影响时才使用相应的 PSU 版本。

后续 CPU 版本将包含当前 PSU 的所有修复。出于这个原因,组织应该在他们的环境中测试当前的 PSU,以期在下一个 CPU 中包含这些修复程序。

Java CPU 和 PSU 版本之间有什么区别?

Java SE 重要补丁更新 (CPU) 包含对安全漏洞的修复和关键错误修复。Oracle 强烈建议所有 Java SE 用户升级到可用的最新 CPU 版本。Java SE CPU 发行版是奇数版本(即 7u71、7u65 – 在此处查看有关 Java SE 版本编号方案的更多信息)。

Java SE 补丁集更新 (PSU) 包含相应 CPU 中的所有修复以及其他非关键修复。仅当您受到该版本中修复的其他错误之一的影响时,才应使用 Java PSU 版本。发行说明列出了 Java SE PSU 发行版中可用的其他修复程序。

CPU 发布的节奏会发生变化吗?

和以前一样,根据正常的 Oracle 重要补丁更新计划,Java SE CPU 版本计划在最接近 1 月、4 月、7 月和 10 月的第 17 天的星期二发布。

随着 Java SE 7u71 (CPU) 和 Java SE 7u72 (PSU) 的发布,从 2014 年 10 月开始,Oracle 计划在 Java SE 7 的每个 CPU 版本的同时发布相应的 PSU 版本。PSU 版本为组织和开发人员提供了访问除了相应 CPU 中包含的关键修复之外,还有非关键修复。


Use u73 unless you know you need a bug fix that's in u74.


除非您知道需要修复 u74 中的错误,否则请使用 u73。