Question

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!

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top