Classes / Methods - Removed / Modified in the SDK

Today I discussed whether any classes or methods have ever been removed from the main Java SDK over the years. I know the material is outdated, but has it ever been modified or deleted?

I thought it was (I can't think of examples), so maybe I'm wrong.

I read several articles on the Internet that say that nothing has been deleted - never!

Any thoughts?

+6
source share
2 answers

Best of all you look at this Oracle article: Java SE 7 and JDK 7 Compatibility

A small copied paste from the article:

Source Compatibility

Java SE 7 includes new language features and API platforms. If they are used in the source file, this source file cannot be compiled on an earlier version of the Java platform.

In general, a source code compatibility policy is to avoid source code incompatibility.

Deprecated APIs are interfaces that are only supported for compatibility with previous versions. The javac compiler generates a warning message when one of them is used, if the -nowarn command line option is not used. It is recommended that programs be modified to exclude the use of obsolete APIs , although there are currently no plans to completely remove such APIs from the system.

Some APIs in the sun. * packages have changed. These APIs are not intended to be used by developers. Developers importing from the sun. * Packages do this at your own peril and risk. For more information, see Why Developers Shouldn't Write Programs That Cause the Sun. * Packages .

+3
source

There are compatibility documents on doc.oracle.com that contain sections on incompatibility . You can find small nuggets in documents like ...

  • The apt functionality was minimized by standardized annotation processing in JSR 269. Running the apt tool in JDK 7 displays a warning that it will be removed in the next major release.
  • JVMDI has been removed and JVMPI disabled in Java SE 6
  • XSLTProcessorApplet class removed
0
source

All Articles