This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Java in General and the fly likes where i can download the source code for sun.misc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "where i can download the source code for sun.misc " Watch "where i can download the source code for sun.misc " New topic
Author

where i can download the source code for sun.misc

luri ron
Ranch Hand

Joined: Dec 11, 2008
Posts: 87
where i can download the source code for sun.misc?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20048
    
  30

It may be part of the JDK's own source (http://java.sun.com/javase/downloads/index.jsp, see "Java SE 6 JDK Source Code"). If it isn't then you're out of luck, because it simply will not be publicly available.

You should know that using classes inside any package that starts with sun, sunw or com.sun is discouraged as they can change or even disappear without any notice, and your program may be broken if that occurs. For instance, I've seen one program that only works for Java 1.4.2_08. Even Java 1.4.2_10 broke the program because it could not find such a class.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
The most commonly used class from that package is probably the base-64 encoder/decoder; if that's what you're looking for, then you should use the Apache Commons Codec library instead.
 
Consider Paul's rocket mass heater.
 
subject: where i can download the source code for sun.misc
 
It's not a secret anymore!