|
Java™ Platform Standard Ed. 7 DRAFT ea-b34 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Deprecated | |
|---|---|
| java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
| java.awt.datatransfer | Provides interfaces and classes for transferring data between and within applications. |
| java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components. |
| java.awt.image.renderable | Provides classes and interfaces for producing rendering-independent images. |
| java.io | Provides for system input and output through data streams, serialization and the file system. |
| java.lang | Provides classes that are fundamental to the design of the Java programming language. |
| java.net | Provides the classes for implementing networking applications. |
| java.rmi | Provides the RMI package. |
| java.rmi.dgc | Provides classes and interface for RMI distributed garbage-collection (DGC). |
| java.rmi.registry | Provides a class and two interfaces for the RMI registry. |
| java.rmi.server | Provides classes and interfaces for supporting the server side of RMI. |
| java.security | Provides the classes and interfaces for the security framework. |
| java.sql | Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language. |
| java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). |
| java.util.logging | Provides the classes and interfaces of the JavaTM 2 platform's core logging facilities. |
| javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components. |
| javax.jws.soap | |
| javax.management | Provides the core classes for the Java Management Extensions. |
| javax.management.loading | Provides the classes which implement advanced dynamic loading. |
| javax.management.monitor | Provides the definition of the monitor classes. |
| javax.management.openmbean | Provides the open data types and Open MBean descriptor classes. |
| javax.management.remote | Interfaces for remote access to JMX MBean servers. |
| javax.security.auth | This package provides a framework for authentication and authorization. |
| javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
| javax.swing.plaf.basic | Provides user interface objects built according to the Basic look and feel. |
| javax.swing.plaf.metal | Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel. |
| javax.swing.table | Provides classes and interfaces for dealing with
javax.swing.JTable. |
| javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
| javax.swing.text.html | Provides the class HTMLEditorKit and supporting classes
for creating HTML text editors. |
| org.omg.CORBA | Provides the mapping of the OMG CORBA APIs to the JavaTM programming language, including the class ORB, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB). |
| org.omg.CORBA.portable | Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB. |
| Uses of Deprecated in java.awt |
|---|
| Fields in java.awt with annotations of type Deprecated | |
|---|---|
static int |
Frame.CROSSHAIR_CURSOR
Deprecated. replaced by Cursor.CROSSHAIR_CURSOR. |
static int |
Frame.DEFAULT_CURSOR
Deprecated. replaced by Cursor.DEFAULT_CURSOR. |
static int |
Frame.E_RESIZE_CURSOR
Deprecated. replaced by Cursor.E_RESIZE_CURSOR. |
static int |
Frame.HAND_CURSOR
Deprecated. replaced by Cursor.HAND_CURSOR. |
static int |
Frame.MOVE_CURSOR
Deprecated. replaced by Cursor.MOVE_CURSOR. |
static int |
Frame.N_RESIZE_CURSOR
Deprecated. replaced by Cursor.N_RESIZE_CURSOR. |
static int |
Frame.NE_RESIZE_CURSOR
Deprecated. replaced by Cursor.NE_RESIZE_CURSOR. |
static int |
Frame.NW_RESIZE_CURSOR
Deprecated. replaced by Cursor.NW_RESIZE_CURSOR. |
static int |
Frame.S_RESIZE_CURSOR
Deprecated. replaced by Cursor.S_RESIZE_CURSOR. |
static int |
Frame.SE_RESIZE_CURSOR
Deprecated. replaced by Cursor.SE_RESIZE_CURSOR. |
static int |
Frame.SW_RESIZE_CURSOR
Deprecated. replaced by Cursor.SW_RESIZE_CURSOR. |
static int |
Frame.TEXT_CURSOR
Deprecated. replaced by Cursor.TEXT_CURSOR. |
static int |
Frame.W_RESIZE_CURSOR
Deprecated. replaced by Cursor.W_RESIZE_CURSOR. |
static int |
Frame.WAIT_CURSOR
Deprecated. replaced by Cursor.WAIT_CURSOR. |
| Methods in java.awt with annotations of type Deprecated | |
|---|---|
boolean |
Component.action(Event evt,
Object what)
Deprecated. As of JDK version 1.1, should register this component as ActionListener on component which fires action events. |
void |
List.addItem(String item)
Deprecated. replaced by add(String). |
void |
List.addItem(String item,
int index)
Deprecated. replaced by add(String, int). |
void |
CardLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object). |
void |
BorderLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object). |
boolean |
List.allowsMultipleSelections()
Deprecated. As of JDK version 1.1, replaced by isMultipleMode(). |
void |
TextArea.appendText(String str)
Deprecated. As of JDK version 1.1, replaced by append(String). |
void |
Window.applyResourceBundle(ResourceBundle rb)
Deprecated. As of J2SE 1.4, replaced by Component.applyComponentOrientation. |
void |
Window.applyResourceBundle(String rbName)
Deprecated. As of J2SE 1.4, replaced by Component.applyComponentOrientation. |
Rectangle |
Component.bounds()
Deprecated. As of JDK version 1.1, replaced by getBounds(). |
void |
List.clear()
Deprecated. As of JDK version 1.1, replaced by removeAll(). |
int |
Container.countComponents()
Deprecated. As of JDK version 1.1, replaced by getComponentCount(). |
int |
Menu.countItems()
Deprecated. As of JDK version 1.1, replaced by getItemCount(). |
int |
List.countItems()
Deprecated. As of JDK version 1.1, replaced by getItemCount(). |
int |
Choice.countItems()
Deprecated. As of JDK version 1.1, replaced by getItemCount(). |
int |
MenuBar.countMenus()
Deprecated. As of JDK version 1.1, replaced by getMenuCount(). |
void |
List.delItem(int position)
Deprecated. replaced by remove(String)
and remove(int). |
void |
List.delItems(int start,
int end)
Deprecated. As of JDK version 1.1, Not for public use in the future. This method is expected to be retained only as a package private method. |
void |
Container.deliverEvent(Event e)
Deprecated. As of JDK version 1.1, replaced by dispatchEvent(AWTEvent e) |
void |
Component.deliverEvent(Event e)
Deprecated. As of JDK version 1.1, replaced by dispatchEvent(AWTEvent e). |
void |
MenuItem.disable()
Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean). |
void |
Component.disable()
Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean). |
void |
MenuItem.enable()
Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean). |
void |
Component.enable()
Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean). |
void |
MenuItem.enable(boolean b)
Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean). |
void |
Component.enable(boolean b)
Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean). |
Rectangle |
Polygon.getBoundingBox()
Deprecated. As of JDK version 1.1, replaced by getBounds(). |
Rectangle |
Graphics.getClipRect()
Deprecated. As of JDK version 1.1, replaced by getClipBounds(). |
Checkbox |
CheckboxGroup.getCurrent()
Deprecated. As of JDK version 1.1, replaced by getSelectedCheckbox(). |
int |
Frame.getCursorType()
Deprecated. As of JDK version 1.1, replaced by Component.getCursor(). |
abstract String[] |
Toolkit.getFontList()
Deprecated. see GraphicsEnvironment.getAvailableFontFamilyNames() |
abstract FontMetrics |
Toolkit.getFontMetrics(Font font)
Deprecated. As of JDK version 1.2, replaced by the Font
method getLineMetrics. |
protected abstract java.awt.peer.FontPeer |
Toolkit.getFontPeer(String name,
int style)
Deprecated. see java.awt.GraphicsEnvironment#getAllFonts |
int |
Scrollbar.getLineIncrement()
Deprecated. As of JDK version 1.1, replaced by getUnitIncrement(). |
int |
FontMetrics.getMaxDecent()
Deprecated. As of JDK version 1.1.1, replaced by getMaxDescent(). |
static ComponentOrientation |
ComponentOrientation.getOrientation(ResourceBundle bdl)
Deprecated. As of J2SE 1.4, use ComponentOrientation.getOrientation(java.util.Locale). |
int |
Scrollbar.getPageIncrement()
Deprecated. As of JDK version 1.1, replaced by getBlockIncrement(). |
java.awt.peer.MenuComponentPeer |
MenuComponent.getPeer()
Deprecated. As of JDK version 1.1, programs should not directly manipulate peers. |
java.awt.peer.FontPeer |
Font.getPeer()
Deprecated. Font rendering is now platform independent. |
java.awt.peer.ComponentPeer |
Component.getPeer()
Deprecated. As of JDK version 1.1, programs should not directly manipulate peers; replaced by boolean isDisplayable(). |
int |
Scrollbar.getVisible()
Deprecated. As of JDK version 1.1, replaced by getVisibleAmount(). |
boolean |
Component.gotFocus(Event evt,
Object what)
Deprecated. As of JDK version 1.1, replaced by processFocusEvent(FocusEvent). |
boolean |
Component.handleEvent(Event evt)
Deprecated. As of JDK version 1.1 replaced by processEvent(AWTEvent). |
void |
Window.hide()
Deprecated. As of JDK version 1.5, replaced by Window.setVisible(boolean). |
void |
Dialog.hide()
Deprecated. As of JDK version 1.5, replaced by setVisible(boolean). |
void |
Component.hide()
Deprecated. As of JDK version 1.1, replaced by setVisible(boolean). |
void |
TextArea.insertText(String str,
int pos)
Deprecated. As of JDK version 1.1, replaced by insert(String, int). |
Insets |
Container.insets()
Deprecated. As of JDK version 1.1, replaced by getInsets(). |
boolean |
Rectangle.inside(int X,
int Y)
Deprecated. As of JDK version 1.1, replaced by contains(int, int). |
boolean |
Polygon.inside(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by contains(int, int). |
boolean |
Component.inside(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by contains(int, int). |
boolean |
Component.isFocusTraversable()
Deprecated. As of 1.4, replaced by isFocusable(). |
boolean |
List.isSelected(int index)
Deprecated. As of JDK version 1.1, replaced by isIndexSelected(int). |
boolean |
Component.keyDown(Event evt,
int key)
Deprecated. As of JDK version 1.1, replaced by processKeyEvent(KeyEvent). |
boolean |
Component.keyUp(Event evt,
int key)
Deprecated. As of JDK version 1.1, replaced by processKeyEvent(KeyEvent). |
void |
ScrollPane.layout()
Deprecated. As of JDK version 1.1, replaced by doLayout(). |
void |
Container.layout()
Deprecated. As of JDK version 1.1, replaced by doLayout(). |
void |
Component.layout()
Deprecated. As of JDK version 1.1, replaced by doLayout(). |
Component |
Container.locate(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by getComponentAt(int, int). |
Component |
Component.locate(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by getComponentAt(int, int). |
Point |
Component.location()
Deprecated. As of JDK version 1.1, replaced by getLocation(). |
boolean |
Component.lostFocus(Event evt,
Object what)
Deprecated. As of JDK version 1.1, replaced by processFocusEvent(FocusEvent). |
Dimension |
TextField.minimumSize()
Deprecated. As of JDK version 1.1, replaced by getMinimumSize(). |
Dimension |
TextArea.minimumSize()
Deprecated. As of JDK version 1.1, replaced by getMinimumSize(). |
Dimension |
List.minimumSize()
Deprecated. As of JDK version 1.1, replaced by getMinimumSize(). |
Dimension |
Container.minimumSize()
Deprecated. As of JDK version 1.1, replaced by getMinimumSize(). |
Dimension |
Component.minimumSize()
Deprecated. As of JDK version 1.1, replaced by getMinimumSize(). |
Dimension |
TextField.minimumSize(int columns)
Deprecated. As of JDK version 1.1, replaced by getMinimumSize(int). |
Dimension |
List.minimumSize(int rows)
Deprecated. As of JDK version 1.1, replaced by getMinimumSize(int). |
Dimension |
TextArea.minimumSize(int rows,
int columns)
Deprecated. As of JDK version 1.1, replaced by getMinimumSize(int, int). |
boolean |
Component.mouseDown(Event evt,
int x,
int y)
Deprecated. As of JDK version 1.1, replaced by processMouseEvent(MouseEvent). |
boolean |
Component.mouseDrag(Event evt,
int x,
int y)
Deprecated. As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent). |
boolean |
Component.mouseEnter(Event evt,
int x,
int y)
Deprecated. As of JDK version 1.1, replaced by processMouseEvent(MouseEvent). |
boolean |
Component.mouseExit(Event evt,
int x,
int y)
Deprecated. As of JDK version 1.1, replaced by processMouseEvent(MouseEvent). |
boolean |
Component.mouseMove(Event evt,
int x,
int y)
Deprecated. As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent). |
boolean |
Component.mouseUp(Event evt,
int x,
int y)
Deprecated. As of JDK version 1.1, replaced by processMouseEvent(MouseEvent). |
void |
Rectangle.move(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by setLocation(int, int). |
void |
Component.move(int x,
int y)
Deprecated. As of JDK version 1.1, replaced by setLocation(int, int). |
void |
Component.nextFocus()
Deprecated. As of JDK version 1.1, replaced by transferFocus(). |
boolean |
Window.postEvent(Event e)
Deprecated. As of JDK version 1.1 replaced by dispatchEvent(AWTEvent). |
boolean |
MenuContainer.postEvent(Event evt)
Deprecated. As of JDK version 1.1 replaced by dispatchEvent(AWTEvent). |
boolean |
MenuComponent.postEvent(Event evt)
Deprecated. As of JDK version 1.1, replaced by dispatchEvent. |
boolean |
Component.postEvent(Event e)
Deprecated. As of JDK version 1.1, replaced by dispatchEvent(AWTEvent). |
Dimension |
TextField.preferredSize()
Deprecated. As of JDK version 1.1, replaced by getPreferredSize(). |
Dimension |
TextArea.preferredSize()
Deprecated. As of JDK version 1.1, replaced by getPreferredSize(). |
Dimension |
List.preferredSize()
Deprecated. As of JDK version 1.1, replaced by getPreferredSize(). |
Dimension |
Container.preferredSize()
Deprecated. As of JDK version 1.1, replaced by getPreferredSize(). |
Dimension |
Component.preferredSize()
Deprecated. As of JDK version 1.1, replaced by getPreferredSize(). |
Dimension |
TextField.preferredSize(int columns)
Deprecated. As of JDK version 1.1, replaced by getPreferredSize(int). |
Dimension |
List.preferredSize(int rows)
Deprecated. As of JDK version 1.1, replaced by getPreferredSize(int). |
Dimension |
TextArea.preferredSize(int rows,
int columns)
Deprecated. As of JDK version 1.1, replaced by getPreferredSize(int, int). |
void |
TextArea.replaceText(String str,
int start,
int end)
Deprecated. As of JDK version 1.1, replaced by replaceRange(String, int, int). |
void |
Window.reshape(int x,
int y,
int width,
int height)
Deprecated. As of JDK version 1.1, replaced by setBounds(int, int, int, int). |
void |
Rectangle.reshape(int x,
int y,
int width,
int height)
Deprecated. As of JDK version 1.1, replaced by setBounds(int, int, int, int). |
void |
Component.reshape(int x,
int y,
int width,
int height)
Deprecated. As of JDK version 1.1, replaced by setBounds(int, int, int, int). |
void |
Component.resize(Dimension d)
Deprecated. As of JDK version 1.1, replaced by setSize(Dimension). |
void |
Rectangle.resize(int width,
int height)
Deprecated. As of JDK version 1.1, replaced by setSize(int, int). |
void |
Component.resize(int width,
int height)
Deprecated. As of JDK version 1.1, replaced by setSize(int, int). |
void |
CheckboxGroup.setCurrent(Checkbox box)
Deprecated. As of JDK version 1.1, replaced by setSelectedCheckbox(Checkbox). |
void |
Frame.setCursor(int cursorType)
Deprecated. As of JDK version 1.1, replaced by Component.setCursor(Cursor). |
void |
TextField.setEchoCharacter(char c)
Deprecated. As of JDK version 1.1, replaced by setEchoChar(char). |
void |
Scrollbar.setLineIncrement(int v)
Deprecated. As of JDK version 1.1, replaced by setUnitIncrement(int). |
void |
List.setMultipleSelections(boolean b)
Deprecated. As of JDK version 1.1, replaced by setMultipleMode(boolean). |
void |
Scrollbar.setPageIncrement(int v)
Deprecated. As of JDK version 1.1, replaced by setBlockIncrement(). |
void |
Window.show()
Deprecated. As of JDK version 1.5, replaced by Window.setVisible(boolean). |
void |
Dialog.show()
Deprecated. As of JDK version 1.5, replaced by setVisible(boolean). |
void |
Component.show()
Deprecated. As of JDK version 1.1, replaced by setVisible(boolean). |
void |
Component.show(boolean b)
Deprecated. As of JDK version 1.1, replaced by setVisible(boolean). |
Dimension |
Component.size()
Deprecated. As of JDK version 1.1, replaced by getSize(). |
| Uses of Deprecated in java.awt.datatransfer |
|---|
| Fields in java.awt.datatransfer with annotations of type Deprecated | |
|---|---|
static DataFlavor |
DataFlavor.plainTextFlavor
Deprecated. as of 1.3. Use DataFlavor.getReaderForText(Transferable)
instead of Transferable.getTransferData(DataFlavor.plainTextFlavor). |
| Methods in java.awt.datatransfer with annotations of type Deprecated | |
|---|---|
boolean |
DataFlavor.equals(String s)
Deprecated. As inconsistent with hashCode() contract,
use isMimeTypeEqual(String) instead. |
protected String |
DataFlavor.normalizeMimeType(String mimeType)
Deprecated. |
protected String |
DataFlavor.normalizeMimeTypeParameter(String parameterName,
String parameterValue)
Deprecated. |
| Uses of Deprecated in java.awt.event |
|---|
| Methods in java.awt.event with annotations of type Deprecated | |
|---|---|
void |
KeyEvent.setModifiers(int modifiers)
Deprecated. as of JDK1.1.4 |
| Constructors in java.awt.event with annotations of type Deprecated | |
|---|---|
KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode)
Deprecated. as of JDK1.1 |
|
| Uses of Deprecated in java.awt.image.renderable |
|---|
| Methods in java.awt.image.renderable with annotations of type Deprecated | |
|---|---|
void |
RenderContext.concetenateTransform(AffineTransform modTransform)
Deprecated. replaced by concatenateTransform(AffineTransform). |
void |
RenderContext.preConcetenateTransform(AffineTransform modTransform)
Deprecated. replaced by preConcatenateTransform(AffineTransform). |
| Uses of Deprecated in java.io |
|---|
| Classes in java.io with annotations of type Deprecated | |
|---|---|
class |
LineNumberInputStream
Deprecated. This class incorrectly assumes that bytes adequately represent characters. As of JDK 1.1, the preferred way to operate on character streams is via the new character-stream classes, which include a class for counting line numbers. |
class |
StringBufferInputStream
Deprecated. This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via the StringReader class. |
| Methods in java.io with annotations of type Deprecated | |
|---|---|
String |
ObjectInputStream.readLine()
Deprecated. This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives. |
String |
DataInputStream.readLine()
Deprecated. This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the
DataInputStream class to read lines can be converted to use
the BufferedReader class by replacing code of the form:
with:
|
String |
ByteArrayOutputStream.toString(int hibyte)
Deprecated. This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the toString(String enc) method, which takes an encoding-name
argument, or the toString() method, which uses the
platform's default character encoding. |
URL |
File.toURL()
Deprecated. This method does not automatically escape characters that are illegal in URLs. It is recommended that new code convert an abstract pathname into a URL by first converting it into a URI, via the toURI method, and then converting the URI into a URL
via the URI.toURL method. |
abstract void |
ObjectOutputStream.PutField.write(ObjectOutput out)
Deprecated. This method does not write the values contained by this PutField object in a proper format, and may
result in corruption of the serialization stream. The
correct way to write PutField data is by
calling the ObjectOutputStream.writeFields()
method. |
| Constructors in java.io with annotations of type Deprecated | |
|---|---|
StreamTokenizer(InputStream is)
Deprecated. As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example: Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r); |
|
| Uses of Deprecated in java.lang |
|---|
| Fields in java.lang with annotations of type Deprecated | |
|---|---|
protected boolean |
SecurityManager.inCheck
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
static Character.UnicodeBlock |
Character.UnicodeBlock.SURROGATES_AREA
Deprecated. As of J2SE 5, use Character.UnicodeBlock.HIGH_SURROGATES,
Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES, and
Character.UnicodeBlock.LOW_SURROGATES. These new constants match
the block definitions of the Unicode Standard.
The Character.UnicodeBlock.of(char) and Character.UnicodeBlock.of(int) methods
return the new constants, not SURROGATES_AREA. |
| Methods in java.lang with annotations of type Deprecated | |
|---|---|
boolean |
ThreadGroup.allowThreadSuspension(boolean b)
Deprecated. The definition of this call depends on ThreadGroup.suspend(),
which is deprecated. Further, the behavior of this call
was never specified. |
void |
SecurityManager.checkMulticast(InetAddress maddr,
byte ttl)
Deprecated. Use #checkPermission(java.security.Permission) instead |
protected int |
SecurityManager.classDepth(String name)
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
protected int |
SecurityManager.classLoaderDepth()
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
int |
Thread.countStackFrames()
Deprecated. The definition of this call depends on Thread.suspend(),
which is deprecated. Further, the results of this call
were never well-defined. |
protected ClassLoader |
SecurityManager.currentClassLoader()
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
protected Class<?> |
SecurityManager.currentLoadedClass()
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
protected Class<?> |
ClassLoader.defineClass(byte[] b,
int off,
int len)
Deprecated. Replaced by defineClass(String, byte[], int, int) |
void |
Thread.destroy()
Deprecated. This method was originally designed to destroy this thread without any cleanup. Any monitors it held would have remained locked. However, the method was never implemented. If if were to be implemented, it would be deadlock-prone in much the manner of Thread.suspend(). If the target thread held
a lock protecting a critical system resource when it was
destroyed, no thread could ever access this resource again.
If another thread ever attempted to lock this resource, deadlock
would result. Such deadlocks typically manifest themselves as
"frozen" processes. For more information, see
Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
void |
String.getBytes(int srcBegin,
int srcEnd,
byte[] dst,
int dstBegin)
Deprecated. This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via the String.getBytes() method, which uses the platform's default charset. |
boolean |
SecurityManager.getInCheck()
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
InputStream |
Runtime.getLocalizedInputStream(InputStream in)
Deprecated. As of JDK 1.1, the preferred way to translate a byte stream in the local encoding into a character stream in Unicode is via the InputStreamReader and BufferedReader
classes. |
OutputStream |
Runtime.getLocalizedOutputStream(OutputStream out)
Deprecated. As of JDK 1.1, the preferred way to translate a Unicode character stream into a byte stream in the local encoding is via the OutputStreamWriter, BufferedWriter, and
PrintWriter classes. |
protected boolean |
SecurityManager.inClass(String name)
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
protected boolean |
SecurityManager.inClassLoader()
Deprecated. This type of security checking is not recommended. It is recommended that the checkPermission
call be used instead. |
static boolean |
Character.isJavaLetter(char ch)
Deprecated. Replaced by isJavaIdentifierStart(char). |
static boolean |
Character.isJavaLetterOrDigit(char ch)
Deprecated. Replaced by isJavaIdentifierPart(char). |
static boolean |
Character.isSpace(char ch)
Deprecated. Replaced by isWhitespace(char). |
void |
ThreadGroup.resume()
Deprecated. This method is used solely in conjunction with Thread.suspend and ThreadGroup.suspend, both of which have been deprecated, as they are inherently deadlock-prone. See Thread.suspend() for details. |
void |
Thread.resume()
Deprecated. This method exists solely for use with Thread.suspend(),
which has been deprecated because it is deadlock-prone.
For more information, see
Why
are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
static void |
System.runFinalizersOnExit(boolean value)
Deprecated. This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock. |
static void |
Runtime.runFinalizersOnExit(boolean value)
Deprecated. This method is inherently unsafe. It may result in finalizers being called on live objects while other threads are concurrently manipulating those objects, resulting in erratic behavior or deadlock. |
void |
ThreadGroup.stop()
Deprecated. This method is inherently unsafe. See Thread.stop() for details. |
void |
Thread.stop()
Deprecated. This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the unchecked ThreadDeath exception propagating up the stack). If
any of the objects previously protected by these monitors were in
an inconsistent state, the damaged objects become visible to
other threads, potentially resulting in arbitrary behavior. Many
uses of stop should be replaced by code that simply
modifies some variable to indicate that the target thread should
stop running. The target thread should check this variable
regularly, and return from its run method in an orderly fashion
if the variable indicates that it is to stop running. If the
target thread waits for long periods (on a condition variable,
for example), the interrupt method should be used to
interrupt the wait.
For more information, see
Why
are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
void |
Thread.stop(Throwable obj)
Deprecated. This method is inherently unsafe. See Thread.stop()
for details. An additional danger of this
method is that it may be used to generate exceptions that the
target thread is unprepared to handle (including checked
exceptions that the thread could not possibly throw, were it
not for this method).
For more information, see
Why
are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
void |
ThreadGroup.suspend()
Deprecated. This method is inherently deadlock-prone. See Thread.suspend() for details. |
void |
Thread.suspend()
Deprecated. This method has been deprecated, as it is inherently deadlock-prone. If the target thread holds a lock on the monitor protecting a critical system resource when it is suspended, no thread can access this resource until the target thread is resumed. If the thread that would resume the target thread attempts to lock this monitor prior to calling resume, deadlock results. Such
deadlocks typically manifest themselves as "frozen" processes.
For more information, see
Why
are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
| Constructors in java.lang with annotations of type Deprecated | |
|---|---|
String(byte[] ascii,
int hibyte)
Deprecated. This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the String constructors that take a Charset, charset name, or that use the platform's
default charset. |
|
String(byte[] ascii,
int hibyte,
int offset,
int count)
Deprecated. This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the String constructors that take a Charset, charset name, or that use the platform's
default charset. |
|
| Uses of Deprecated in java.net |
|---|
| Fields in java.net with annotations of type Deprecated | |
|---|---|
static int |
HttpURLConnection.HTTP_SERVER_ERROR
Deprecated. it is misplaced and shouldn't have existed. |
| Methods in java.net with annotations of type Deprecated | |
|---|---|
static String |
URLDecoder.decode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding. |
static String |
URLEncoder.encode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the encode(String,String) method to specify the encoding. |
static String |
URLConnection.getDefaultRequestProperty(String key)
Deprecated. The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained. |
byte |
MulticastSocket.getTTL()
Deprecated. use the getTimeToLive method instead, which returns an int instead of a byte. |
protected abstract byte |
DatagramSocketImpl.getTTL()
Deprecated. use getTimeToLive instead. |
void |
MulticastSocket.send(DatagramPacket p,
byte ttl)
Deprecated. Use the following code or its equivalent instead: ...... int ttl = mcastSocket.getTimeToLive(); mcastSocket.setTimeToLive(newttl); mcastSocket.send(p); mcastSocket.setTimeToLive(ttl); ...... |
static void |
URLConnection.setDefaultRequestProperty(String key,
String value)
Deprecated. The instance specific setRequestProperty method should be used after an appropriate instance of URLConnection is obtained. Invoking this method will have no effect. |
void |
MulticastSocket.setTTL(byte ttl)
Deprecated. use the setTimeToLive method instead, which uses int instead of byte as the type for ttl. |
protected abstract void |
DatagramSocketImpl.setTTL(byte ttl)
Deprecated. use setTimeToLive instead. |
protected void |
URLStreamHandler.setURL(URL u,
String protocol,
String host,
int port,
String file,
String ref)
Deprecated. Use setURL(URL, String, String, int, String, String, String, String); |
| Constructors in java.net with annotations of type Deprecated | |
|---|---|
Socket(InetAddress host,
int port,
boolean stream)
Deprecated. Use DatagramSocket instead for UDP transport. |
|
Socket(String host,
int port,
boolean stream)
Deprecated. Use DatagramSocket instead for UDP transport. |
|
| Uses of Deprecated in java.rmi |
|---|
| Classes in java.rmi with annotations of type Deprecated | |
|---|---|
class |
RMISecurityException
Deprecated. Use SecurityException instead.
Application code should never directly reference this class, and
RMISecurityManager no longer throws this subclass of
java.lang.SecurityException. |
class |
ServerRuntimeException
Deprecated. no replacement |
| Constructors in java.rmi with annotations of type Deprecated | |
|---|---|
RMISecurityException(String name)
Deprecated. no replacement |
|
RMISecurityException(String name,
String arg)
Deprecated. no replacement |
|
ServerRuntimeException(String s,
Exception ex)
Deprecated. no replacement |
|
| Uses of Deprecated in java.rmi.dgc |
|---|
| Methods in java.rmi.dgc with annotations of type Deprecated | |
|---|---|
static boolean |
VMID.isUnique()
Deprecated. |
| Uses of Deprecated in java.rmi.registry |
|---|
| Classes in java.rmi.registry with annotations of type Deprecated | |
|---|---|
interface |
RegistryHandler
Deprecated. no replacement |
| Methods in java.rmi.registry with annotations of type Deprecated | |
|---|---|
Registry |
RegistryHandler.registryImpl(int port)
Deprecated. no replacement. As of the Java 2 platform v1.2, RMI no longer uses the RegistryHandler to obtain the registry's
implementation. |
Registry |
RegistryHandler.registryStub(String host,
int port)
Deprecated. no replacement. As of the Java 2 platform v1.2, RMI no longer uses the RegistryHandler to obtain the registry's
stub. |
| Uses of Deprecated in java.rmi.server |
|---|
| Classes in java.rmi.server with annotations of type Deprecated | |
|---|---|
interface |
LoaderHandler
Deprecated. no replacement |
class |
LogStream
& |