从 JDK 27 开始,Oracle 工程师将不再维护 macOS/x64 版本。
JEP 541: Deprecate the macOS/x64 Port for Removal

原始链接: https://openjdk.org/jeps/541

本提案将 macOS/x64 平台的 JDK 标记为弃用,并计划最终将其移除。随着苹果公司已全面转向 AArch64 架构,维护 x64 端口已成为不必要的负担。 自 JDK 27 起,尝试构建 macOS/x64 版本将触发错误。仍需使用该端口的开发者可通过 `--enable-deprecated-ports` 配置标志绕过此错误,但无法保证该端口能保持功能或获得维护。此外,为了精简主线开发,针对该平台的 GitHub Actions 将被禁用,官方文档也将体现其弃用状态。 如果有一群专门的开发者站出来承诺对其进行持续维护,该端口或许可以保留。若无此类干预,该端口计划在未来的版本中被永久移除。

Oracle 已宣布,从 JDK 27 版本开始,将停止维护 macOS/x64 移植版本。这一决定反映了随着基于 Intel 的 Mac 日益过时,整个行业正向 Apple Silicon 转型。 Hacker News 上的讨论重点包括以下几点: * **LTS 的寿命:** 用户可以继续使用 Java 25 等长期支持(LTS)版本,这些版本将获得多年的更新,从而有效地减轻了使用旧硬件用户的燃眉之急。 * **开源可用性:** 由于 OpenJDK 是开源的,对于愿意维护自行构建版本或补丁的用户来说,该平台依然可行。 * **硬件生命周期:** 评论者讨论了此举是否会导致“电子垃圾”问题,一些人认为,即使 macOS 的官方支持最终终止,Intel Mac 依然可以运行 Linux 等替代操作系统。 * **行业标准:** 许多用户认为此举是对苹果自身硬件转型作出的合理回应,并指出只要有活跃的用户群或社区兴趣来维护该移植版本,Java “随处运行”的理念依然稳固。 总的来说,社区认为此举是逐步淘汰老化架构的合理步骤。
相关文章

原文
OwnerMikael Vidstedt
TypeFeature
ScopeImplementation
StatusCandidate
Discussionhotspot dash dev at openjdk dot org
EffortS
DurationS
Reviewed byErik Joelsson
Created2026/06/05 22:47
Updated2026/07/23 15:20
Issue8386091

Summary

Deprecate the macOS/x64 port, with the intent to remove it in a future release, in order to reduce maintenance costs.

Motivation

Apple has transitioned its hardware products to the AArch64 processor architecture and is phasing out support for x64. Oracle engineers will thus stop maintaining the macOS/x64 port as of JDK 27. Maintaining the port is a significant burden.

Description

An attempt to configure a macOS/x64 build will produce:

$ bash ./configure
...
checking compilation type... native
configure: error: The macOS/x64 port is deprecated and may be removed in a future release. Use --enable-deprecated-ports to suppress this error.
configure exiting with result code 1
$

The new build-configuration option --enable-deprecated-ports will suppress the error and continue:

$ bash ./configure --enable-deprecated-ports
...
checking compilation type... native
configure: WARNING: The macOS/x64 port is deprecated and may be removed in a future release.
...
Build performance summary:
* Cores to use:   32
* Memory limit:   96601 MB

The following warnings were produced. Repeated here for convenience:
WARNING: The macOS/x64 port is deprecated and may be removed in a future release.
$

There will be no guarantee that the port will build, much less function.

In order not to block mainline development, macOS/x64 will be disabled by default in the JDK repository’s GitHub actions.

Additionally, the macOS/x64 port, and related port-specific features, will be noted as being deprecated for removal in the relevant JDK documentation.

Alternatives

As with earlier port deprecations, an alternative is for a set of credible developers to express a clear desire to maintain the port going forward. If that happens before this JEP is integrated then this JEP can be withdrawn. If that happens after this JEP is integrated, but before the port is removed, then a follow-on JEP can revert the deprecation.

联系我们 contact @ memedata.com