javajava-6sun

Where download sun.* Java source?


I am supporting a project that uses Java 6 and need to go deep into the Java source (sun.net.www.protocol.http.HttpURLConnection to be precise). However src.zip attached in Java JDK folder does not contain source code for sun.* packages. Is it possible to download the source code I need and if yes - where from?


Solution

  • Do you need the specific sun.* class?
    How about grepcode?
    http://grepcode.com/search?query=sun.*

    You can also find the sun.* code in the jdk sources and download it here:
    http://hg.openjdk.java.net/jdk6/jdk6/jdk/file/a0ea2ba34bdd/src/share/classes/com/sun

    (I've put a link to jdk6 for you, but you can find any version there, of course)