do not use com.sun.xml.internal.*?
Posted
by sarah xia
on Stack Overflow
See other posts from Stack Overflow
or by sarah xia
Published on 2010-05-19T05:20:54Z
Indexed on
2010/05/19
5:30 UTC
Read the original article
Hit count: 286
Hi all,
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
© Stack Overflow or respective owner