Where can I get (matching) sources for com.sun.jndi.ldap.* packages?

老子叫甜甜 提交于 2019-12-12 12:07:07

问题


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!


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/8760560/where-can-i-get-matching-sources-for-com-sun-jndi-ldap-packages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!