gpt4 book ai didi

java - 如果源代码不在 JDK 的 src.zip 中,是否意味着它不是开源的?

转载 作者:行者123 更新时间:2023-12-01 04:50:48 27 4
gpt4 key购买 nike

<分区>

想看sun.nio.ch.SocketChannelImpl#read函数的源码。但是Oracle的JDK的src.zip中没有对应的源码。

我知道我可以从从 http://download.java.net/openjdk/jdk6/ 下载的 OpenJDK 的 openjdk-6-src-b27-26_oct_2012.tar.gz 中看到它.

但这是否意味着我无法从更流行的非开放JDK中获取它,因为它不是开源的?或者我遗漏了一些东西,我实际上可以从 Oracle JDK 得到它?(我不太了解 JDK 和 OpenJDK 的区别)


更新:
我不明白为什么 Oracle 没有将所有源代码包含在 src.zip 中,因为可以从 OpenJDK 中获取它。他们想隐藏什么?我认为如果 src.zip 中没有任何来源,则意味着 Oracle 为此使用了“一些闭源第三方组件”或“商业功能”。正确的?

引自 https://blogs.oracle.com/henrik/entry/java_7_questions_answers :

" Q: Where can I find the source code? A: The source code for the Java SE 7 Reference Implementation is available from the JDK 7 Project in the OpenJDK Community.

Q: What is the difference between the source code found in the OpenJDK repository, and the code you use to build the Oracle JDK? A: It is very close - our build process for Oracle JDK releases builds on OpenJDK 7 by adding just a couple of pieces, like the deployment code, which includes Oracle's implementation of the Java Plugin and Java WebStart, as well as some closed source third party components like a graphics rasterizer, some open source third party components, like Rhino, and a few bits and pieces here and there, like additional documentation or third party fonts. Moving forward, our intent is to open source all pieces of the Oracle JDK except those that we consider commercial features such as JRockit Mission Control (not yet available in Oracle JDK), and replace encumbered third party components with open source alternatives to achieve closer parity between the code bases."

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com