Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sun package is forbidden Then what about com package in future.

991649Mar 22 2013 — edited Mar 22 2013
sun package has been forbiden in java 1.7 on wards.

The java.*, javax.* and org.* packages documented in the Java 2 Platform Standard
Edition API Specification make up the official, supported, public interface.
If a Java program directly calls only API in these packages, it will operate
on all Java-compatible platforms, regardless of the underlying OS platform.
The sun.* packages are not part of the supported, public interface.

A Java program that directly calls into sun.* packages is not guaranteed to work
on all Java-compatible platforms. In fact, such a program is not guaranteed to
work even in future versions on the same platform.

for reference :
http://docs.oracle.com/javase/1.5.0/docs/guide/security/jsse/JSSERefGuide.html
1534295
http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html
http://stackoverflow.com/questions/2863043/do-not-use-com-sun-xml-internal


So, What about the com and org package can able to implement in java,
because in future after software has been developed
should get any trouble right that is y asking...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2013
Added on Mar 22 2013
6 comments
3,319 views