| Wiki Markup |
|---|
Never use deprecated fields, methods, or classes in new code. The Java SE 6 documentation provides a [complete list|http://download.oracle.com/javase/6/docs/api/deprecated-list.html] of deprecated APIs \[[API 2006|AA. Bibliography#API 06]\]. Java also provides a {{@deprecated}} annotation to indicate the deprecation of specific fields, methods, and classes. For instance, many methods of {{java.util.Date}}, such as {{Date.getYear()}}, have been explicitly deprecated. TheRule rule [THI05-J. Do not use Thread.stop() to terminate threads|THI05-J. Do not use Thread.stop() to terminate threads] describes issues that can result from using the deprecated {{Thread.stop()}} method. |
| Wiki Markup |
|---|
Obsolete fields, methods, and classes should not be used. Java provideslacks noan annotation tothat indicateindicates obsolescence; nevertheless, several butclasses severaland objectsmethods are documented as obsolete. For instance, the {{java.util.Dictionary}} class is marked as obsolete, and; new code should use {{java.util.Map<K,V>}} instead \[[API 2006|AA. Bibliography#API 06]\]. |
...
Class or Method | Replacement | Rule |
|---|---|---|
| |
|
| |
|
| |
|
| | ERR06-J. Do not let code throw undeclared checked exceptions |
| |
|
| |
|
| |
|
| | |
| | |
| |
The Java Virtual Machine (JVM) Profiler Interface (JVMPI) and JVM Debug Interface (JVMDI) are also deprecated and have been replaced by the JVM Tool Interface (JVMTI), see . See rule ENV05-J. Do not deploy an application that can be remotely monitored for more information.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="99a5b408f7832ca5-8a04082c-43c441ce-a515863d-d0ce6311f277bfe7c6cb6ab0"><ac:plain-text-body><![CDATA[ | [ISO/IEC TR 24772:2010 | http://www.aitcnet.org/isai/] | " Deprecated Language Features language features [MEM] " | ]]></ac:plain-text-body></ac:structured-macro> |
CWE-589, ". Call to Nonnon-ubiquitous API " |
Bibliography
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f2e702a75790f354-709806a7-43474133-8f74a4e9-50fb121e8010f82c12e26e71"><ac:plain-text-body><![CDATA[ | [[API 2006 | AA. Bibliography#API 06]] | [Deprecated API | http://java.sun.com/javase/6/docs/api/deprecated-list.html], [Dictionary | http://download.oracle.com/javase/6/docs/api/java/util/Dictionary.html] | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="5516d966db66068d-d85eab8d-4a4a4916-b4b3a134-680f100d29b398090528f996"><ac:plain-text-body><![CDATA[ | [[SDN 2008 | AA. Bibliography#SDN 08]] | Bug database, [Bug ID 4264153 | http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4264153] | ]]></ac:plain-text-body></ac:structured-macro> |
...