在哪里可以获得 com.sun.jndi.ldap.* 包的(匹配)源?
我使用的是 JDK6_u26,并且没有找到 com.sun.jndi.ldap
包源作为sources.zip 的一部分。 我相信它们可以从 OpenJDK6 项目中获得,但我不确定;我读到,在某些情况下,源代码与二进制文件不匹配。 有人可以阐明如何获取这些包的源代码(如果可能的话,与 JDK 二进制版本完全匹配)以将它们附加到调试器中?
URL 链接/指针会很棒... 预先非常感谢!
I am on JDK6_u26 and don't find com.sun.jndi.ldap
package sources as part of sources.zip.
I believe they could be available from OpenJDK6 project, but I am not sure; and I am reading that the sources don't match the binaries in some cases.
Can someone shed some light as to how to get the sources (and if possible,exact matching the JDK binary build) for these packages for attaching them in the debugger?
A URL link/pointer would be great...
Thanks a lot in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅此处的“Java SE 6 JDK 源代码”部分。在此过程中您必须签署社区许可证。注意:此下载内容比 JDK 提供的 src.zip 内容多多。
See here, "Java SE 6 JDK Source Code" section. You have to sign the Community Licence in the process. NB This download contains much more than the src.zip provided with the JDK.
由于EJP的答案不再指向正确的地方,我在这里给出我的答案:
我们可以下载openJDK 8 这里,注意到目前为止最新版本是openJDK 8、如果以后我们想下载最新版本,请将http://download.java.net/openjdk/jdk8/" rel="nofollow">http:// /download.java.net/openjdk/jdk8/ 加上当前版本号,进入该链接,我们可以找到源代码下载链接。
然后我们可以在
openJDK/src/openjdk/jdk/src/share/classes/com/sun/jndi/ldap/
找到这个包。例如,连接池位于
openJDK/src/openjdk/jdk/src/share/classes/com/sun/jndi/ldap/pool/Pool.java
Since EJP's answer does not lead to a correct place any more, I give my answer here:
We can downlaod openJDK 8 here, note that up to now the latest version is openJDK 8, in case that in the further we want to download the latest version, replace the number 8 in http://download.java.net/openjdk/jdk8/ with the current version number, and go that link and we can find the source code download link.
Then we can find this package at
openJDK/src/openjdk/jdk/src/share/classes/com/sun/jndi/ldap/
.For example, the connection pool is in
openJDK/src/openjdk/jdk/src/share/classes/com/sun/jndi/ldap/pool/Pool.java