包管理 – 为什么OpenJDK 10打包为openjdk-11- *?

在寻求从源代码编译OpenJDK时,最新的通用版本(OpenJDK 10.0.1)坚持使用OpenJDK 9或10.然而,JDK 11将在September 2018之前发布.

但令我惊讶的是,当我搜索openjdk时,结果是:

...
openjdk-11-jdk - OpenJDK Development Kit (JDK)
...
openjdk-8-jdk - OpenJDK Development Kit (JDK)
...

没有OpenJDK 9或10!

等等,是OpenJDK 11吗?也许Beta发布?拿去….

所以我看了一下apt show openjdk-11-jdk:

Package: openjdk-11-jdk
Version: 10.0.1+10-3ubuntu1
...

为什么OpenJDK 10打包为openjdk-11- * ??

解决方法:

这是因为这些包在发布时将成为OpenJDK 11.见this mailing list post

On behalf of the Ubuntu Foundations Team, I am requesting an SRU
exception for OpenJDK. Our plan is to release OpenJDK 10 as the
default JRE/JDK 07001 for Bionic, and then move the default JRE/JDK in
main to OpenJDK 11 in September/October 2018 as an SRU.

= Proposed Plan =

Bionic will be released with OpenJDK 10 as the default JRE/JDK and
OpenJDK 11 will replace it once it reaches GA.

If we are going to switch to OpenJDK 11 in bionic once released, we
want to avoid OpenJDK 8 as the default JRE/JDK in Bionic at release
time because any additional interface delta that exists between 8 and
11 not only exposes the archive to breakage, it also exposes external
consumers of the JDK to breakage. In comparison, the interface delta
between OpenJDK 10 and OpenJDK 11 is expected to be fairly small,
especially in comparison with the delta between OpenJDK 8 and OpenJDK
9 that we already know is large. We should therefore release with
OpenJDK 10 as the default JDK in 18.04, transitioning to OpenJDK 11
when it is released.

这也是为什么openjdk-11- *的源包实际上被称为openjdk-lts.

上一篇:Ubuntu系统 安装谷歌 Chrome 浏览器


下一篇:11.10 – 如何用OpenJDK 7替换OpenJDK 6?