开发者

Why can't I find the API documentation for com.sun.* classes in rt.jar?

开发者 https://www.devze.com 2022-12-13 10:50 出处:网络
I found a scenario that uses com.sun.jndi.toolkit.UrlUtil class in a source cods. I can find this class in rt.jar in Standard Java Dis开发者_运维百科tribution. But I cannot find any API documentation

I found a scenario that uses com.sun.jndi.toolkit.UrlUtil class in a source cods. I can find this class in rt.jar in Standard Java Dis开发者_运维百科tribution. But I cannot find any API documentation for classes in this package. Why these classes are hidden? Are there any drawbacks in using those classes in my code?


Because com.sun.* is not an API. It's Sun's implementation. You shouldn't rely on these classes, because they are likely to change.


Altavista found this one

http://www.docjar.com/docs/api/sun/misc/package-index.html

It's not official, but may help...

0

精彩评论

暂无评论...
验证码 换一张
取 消