Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

do not use com.sun.xml.internal.*?

Tags:

Is this statement true:

com.sun.xml.internal package is an internal package as the name suggestes. Users should not write code that depends on internal JDK implementation classes. Such classes are internal implementation details of the JDK and subject to change without notice

One of my colleagues used one of the classes in his code, which caused javac task in Ant fail to compile our project as the compiler couldn't find the class. Answer from Sun/Oracle says that this is expected behavior of the compiler as user shouldn't use the package.

Question is why the classes in the package made public in the first place?

Thanks,

Sarah