Uses of Class
java.lang.Deprecated
-
Packages that use Deprecated Package Description 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.jar Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.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.imageio.spi A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.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.security.auth This package provides a framework for authentication and authorization.javax.sql.rowset Standard interfaces and base classes for JDBCRowSet
implementations.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 withjavax.swing.JTable
.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.javax.swing.text.html Provides the classHTMLEditorKit
and supporting classes for creating HTML text editors.javax.swing.tree Provides classes and interfaces for dealing withjavax.swing.JTree
.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 Modifier and Type Field and Description static int
Frame. CROSSHAIR_CURSOR
Deprecated.replaced byCursor.CROSSHAIR_CURSOR
.static int
Frame. DEFAULT_CURSOR
Deprecated.replaced byCursor.DEFAULT_CURSOR
.static int
Frame. E_RESIZE_CURSOR
Deprecated.replaced byCursor.E_RESIZE_CURSOR
.static int
Frame. HAND_CURSOR
Deprecated.replaced byCursor.HAND_CURSOR
.static int
Frame. MOVE_CURSOR
Deprecated.replaced byCursor.MOVE_CURSOR
.static int
Frame. N_RESIZE_CURSOR
Deprecated.replaced byCursor.N_RESIZE_CURSOR
.static int
Frame. NE_RESIZE_CURSOR
Deprecated.replaced byCursor.NE_RESIZE_CURSOR
.static int
Frame. NW_RESIZE_CURSOR
Deprecated.replaced byCursor.NW_RESIZE_CURSOR
.protected static Cursor[]
Cursor. predefined
Deprecated.As of JDK version 1.7, theCursor.getPredefinedCursor(int)
method should be used instead.static int
Frame. S_RESIZE_CURSOR
Deprecated.replaced byCursor.S_RESIZE_CURSOR
.static int
Frame. SE_RESIZE_CURSOR
Deprecated.replaced byCursor.SE_RESIZE_CURSOR
.static int
Frame. SW_RESIZE_CURSOR
Deprecated.replaced byCursor.SW_RESIZE_CURSOR
.static int
Frame. TEXT_CURSOR
Deprecated.replaced byCursor.TEXT_CURSOR
.static int
Frame. W_RESIZE_CURSOR
Deprecated.replaced byCursor.W_RESIZE_CURSOR
.static int
Frame. WAIT_CURSOR
Deprecated.replaced byCursor.WAIT_CURSOR
.Methods in java.awt with annotations of type Deprecated Modifier and Type Method and Description 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 byadd(String)
.void
List. addItem(String item, int index)
Deprecated.replaced byadd(String, int)
.void
CardLayout. addLayoutComponent(String name, Component comp)
Deprecated.replaced byaddLayoutComponent(Component, Object)
.void
BorderLayout. addLayoutComponent(String name, Component comp)
Deprecated.replaced byaddLayoutComponent(Component, Object)
.boolean
List. allowsMultipleSelections()
Deprecated.As of JDK version 1.1, replaced byisMultipleMode()
.void
TextArea. appendText(String str)
Deprecated.As of JDK version 1.1, replaced byappend(String)
.void
Window. applyResourceBundle(ResourceBundle rb)
Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation
.void
Window. applyResourceBundle(String rbName)
Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation
.Rectangle
Component. bounds()
Deprecated.As of JDK version 1.1, replaced bygetBounds()
.void
List. clear()
Deprecated.As of JDK version 1.1, replaced byremoveAll()
.int
Container. countComponents()
Deprecated.As of JDK version 1.1, replaced by getComponentCount().int
Choice. countItems()
Deprecated.As of JDK version 1.1, replaced bygetItemCount()
.int
List. countItems()
Deprecated.As of JDK version 1.1, replaced bygetItemCount()
.int
Menu. countItems()
Deprecated.As of JDK version 1.1, replaced bygetItemCount()
.int
MenuBar. countMenus()
Deprecated.As of JDK version 1.1, replaced bygetMenuCount()
.void
List. delItem(int position)
Deprecated.replaced byremove(String)
andremove(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 bydispatchEvent(AWTEvent e)
void
Component. deliverEvent(Event e)
Deprecated.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)
.void
MenuItem. disable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
Component. disable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
MenuItem. enable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
Component. enable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
MenuItem. enable(boolean b)
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
Component. enable(boolean b)
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.Rectangle
Polygon. getBoundingBox()
Deprecated.As of JDK version 1.1, replaced bygetBounds()
.Rectangle
Graphics. getClipRect()
Deprecated.As of JDK version 1.1, replaced bygetClipBounds()
.Checkbox
CheckboxGroup. getCurrent()
Deprecated.As of JDK version 1.1, replaced bygetSelectedCheckbox()
.int
Frame. getCursorType()
Deprecated.As of JDK version 1.1, replaced byComponent.getCursor()
.abstract String[]
Toolkit. getFontList()
Deprecated.abstract FontMetrics
Toolkit. getFontMetrics(Font font)
Deprecated.As of JDK version 1.2, replaced by theFont
methodgetLineMetrics
.protected abstract java.awt.peer.FontPeer
Toolkit. getFontPeer(String name, int style)
Deprecated.see java.awt.GraphicsEnvironment#getAllFontsint
Scrollbar. getLineIncrement()
Deprecated.As of JDK version 1.1, replaced bygetUnitIncrement()
.int
FontMetrics. getMaxDecent()
Deprecated.As of JDK version 1.1.1, replaced bygetMaxDescent()
.static ComponentOrientation
ComponentOrientation. getOrientation(ResourceBundle bdl)
Deprecated.As of J2SE 1.4, useComponentOrientation.getOrientation(java.util.Locale)
.int
Scrollbar. getPageIncrement()
Deprecated.As of JDK version 1.1, replaced bygetBlockIncrement()
.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 byboolean isDisplayable()
.int
Scrollbar. getVisible()
Deprecated.As of JDK version 1.1, replaced bygetVisibleAmount()
.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
Dialog. hide()
Deprecated.As of JDK version 1.5, replaced bysetVisible(boolean)
.void
Window. hide()
Deprecated.As of JDK version 1.5, replaced byWindow.setVisible(boolean)
.void
Component. hide()
Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean)
.void
TextArea. insertText(String str, int pos)
Deprecated.As of JDK version 1.1, replaced byinsert(String, int)
.Insets
Container. insets()
Deprecated.As of JDK version 1.1, replaced bygetInsets()
.boolean
Polygon. inside(int x, int y)
Deprecated.As of JDK version 1.1, replaced bycontains(int, int)
.boolean
Rectangle. inside(int X, int Y)
Deprecated.As of JDK version 1.1, replaced bycontains(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 byisFocusable()
.boolean
List. isSelected(int index)
Deprecated.As of JDK version 1.1, replaced byisIndexSelected(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 bydoLayout()
.void
Container. layout()
Deprecated.As of JDK version 1.1, replaced bydoLayout()
.void
Component. layout()
Deprecated.As of JDK version 1.1, replaced bydoLayout()
.Component
Container. locate(int x, int y)
Deprecated.As of JDK version 1.1, replaced bygetComponentAt(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 bygetLocation()
.boolean
Component. lostFocus(Event evt, Object what)
Deprecated.As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).Dimension
TextArea. minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.Dimension
List. minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.Dimension
TextField. minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.Dimension
Container. minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.Dimension
Component. minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.Dimension
List. minimumSize(int rows)
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int)
.Dimension
TextField. minimumSize(int columns)
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int)
.Dimension
TextArea. minimumSize(int rows, int columns)
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(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 bysetLocation(int, int)
.void
Component. move(int x, int y)
Deprecated.As of JDK version 1.1, replaced bysetLocation(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 bydispatchEvent(AWTEvent)
.boolean
MenuComponent. postEvent(Event evt)
Deprecated.As of JDK version 1.1, replaced bydispatchEvent
.boolean
MenuContainer. postEvent(Event evt)
Deprecated.As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).boolean
Component. postEvent(Event e)
Deprecated.As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).Dimension
TextArea. preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.Dimension
List. preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.Dimension
TextField. preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.Dimension
Container. preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.Dimension
Component. preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.Dimension
List. preferredSize(int rows)
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int)
.Dimension
TextField. preferredSize(int columns)
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int)
.Dimension
TextArea. preferredSize(int rows, int columns)
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int, int)
.void
TextArea. replaceText(String str, int start, int end)
Deprecated.As of JDK version 1.1, replaced byreplaceRange(String, int, int)
.void
Window. reshape(int x, int y, int width, int height)
Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.void
Rectangle. reshape(int x, int y, int width, int height)
Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.void
Component. reshape(int x, int y, int width, int height)
Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.void
Component. resize(Dimension d)
Deprecated.As of JDK version 1.1, replaced bysetSize(Dimension)
.void
Rectangle. resize(int width, int height)
Deprecated.As of JDK version 1.1, replaced bysetSize(int, int)
.void
Component. resize(int width, int height)
Deprecated.As of JDK version 1.1, replaced bysetSize(int, int)
.void
CheckboxGroup. setCurrent(Checkbox box)
Deprecated.As of JDK version 1.1, replaced bysetSelectedCheckbox(Checkbox)
.void
Frame. setCursor(int cursorType)
Deprecated.As of JDK version 1.1, replaced byComponent.setCursor(Cursor)
.void
TextField. setEchoCharacter(char c)
Deprecated.As of JDK version 1.1, replaced bysetEchoChar(char)
.void
Scrollbar. setLineIncrement(int v)
Deprecated.As of JDK version 1.1, replaced bysetUnitIncrement(int)
.void
List. setMultipleSelections(boolean b)
Deprecated.As of JDK version 1.1, replaced bysetMultipleMode(boolean)
.void
Scrollbar. setPageIncrement(int v)
Deprecated.As of JDK version 1.1, replaced bysetBlockIncrement()
.void
Dialog. show()
Deprecated.As of JDK version 1.5, replaced bysetVisible(boolean)
.void
Window. show()
Deprecated.As of JDK version 1.5, replaced byWindow.setVisible(boolean)
.void
Component. show()
Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean)
.void
Component. show(boolean b)
Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean)
.Dimension
Component. size()
Deprecated.As of JDK version 1.1, replaced bygetSize()
. -
Uses of Deprecated in java.awt.datatransfer
Fields in java.awt.datatransfer with annotations of type Deprecated Modifier and Type Field and Description static DataFlavor
DataFlavor. plainTextFlavor
Deprecated.as of 1.3. UseDataFlavor.getReaderForText(Transferable)
instead ofTransferable.getTransferData(DataFlavor.plainTextFlavor)
.Methods in java.awt.datatransfer with annotations of type Deprecated Modifier and Type Method and Description boolean
DataFlavor. equals(String s)
Deprecated.As inconsistent withhashCode()
contract, useisMimeTypeEqual(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 Modifier and Type Method and Description void
KeyEvent. setModifiers(int modifiers)
Deprecated.as of JDK1.1.4Constructors in java.awt.event with annotations of type Deprecated Constructor and Description 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 Modifier and Type Method and Description void
RenderContext. concetenateTransform(AffineTransform modTransform)
Deprecated.replaced byconcatenateTransform(AffineTransform)
.void
RenderContext. preConcetenateTransform(AffineTransform modTransform)
Deprecated.replaced bypreConcatenateTransform(AffineTransform)
. -
Uses of Deprecated in java.io
Classes in java.io with annotations of type Deprecated Modifier and Type Class and Description 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 theStringReader
class.Methods in java.io with annotations of type Deprecated Modifier and Type Method and Description 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 theBufferedReader.readLine()
method. Programs that use theDataInputStream
class to read lines can be converted to use theBufferedReader
class by replacing code of the form:DataInputStream d = new DataInputStream(in);
BufferedReader d = new BufferedReader(new InputStreamReader(in));
String
ObjectInputStream. readLine()
Deprecated.This method does not properly convert bytes to characters. see DataInputStream for the details and alternatives.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 thetoString(String enc)
method, which takes an encoding-name argument, or thetoString()
method, which uses the platform's default character encoding.URL
File. toURL()
abstract void
ObjectOutputStream.PutField. write(ObjectOutput out)
Deprecated.This method does not write the values contained by thisPutField
object in a proper format, and may result in corruption of the serialization stream. The correct way to writePutField
data is by calling theObjectOutputStream.writeFields()
method.Constructors in java.io with annotations of type Deprecated Constructor and Description 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 Modifier and Type Field and Description protected boolean
SecurityManager. inCheck
Deprecated.This type of security checking is not recommended. It is recommended that thecheckPermission
call be used instead.static Character.UnicodeBlock
Character.UnicodeBlock. SURROGATES_AREA
Deprecated.As of J2SE 5, useCharacter.UnicodeBlock.HIGH_SURROGATES
,Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES
, andCharacter.UnicodeBlock.LOW_SURROGATES
. These new constants match the block definitions of the Unicode Standard. TheCharacter.UnicodeBlock.of(char)
andCharacter.UnicodeBlock.of(int)
methods return the new constants, not SURROGATES_AREA.Methods in java.lang with annotations of type Deprecated Modifier and Type Method and Description boolean
ThreadGroup. allowThreadSuspension(boolean b)
Deprecated.The definition of this call depends onThreadGroup.suspend()
, which is deprecated. Further, the behavior of this call was never specified.void
SecurityManager. checkAwtEventQueueAccess()
Deprecated.The dependency onAWTPermission
creates an impediment to future modularization of the Java platform. Users of this method should instead invokeSecurityManager.checkPermission(java.security.Permission)
directly. This method will be changed in a future release to check the permissionjava.security.AllPermission
.void
SecurityManager. checkMemberAccess(Class<?> clazz, int which)
Deprecated.This method relies on the caller being at a stack depth of 4 which is error-prone and cannot be enforced by the runtime. Users of this method should instead invokeSecurityManager.checkPermission(java.security.Permission)
directly. This method will be changed in a future release to check the permissionjava.security.AllPermission
.void
SecurityManager. checkMulticast(InetAddress maddr, byte ttl)
Deprecated.Use #checkPermission(java.security.Permission) insteadvoid
SecurityManager. checkSystemClipboardAccess()
Deprecated.The dependency onAWTPermission
creates an impediment to future modularization of the Java platform. Users of this method should instead invokeSecurityManager.checkPermission(java.security.Permission)
directly. This method will be changed in a future release to check the permissionjava.security.AllPermission
.boolean
SecurityManager. checkTopLevelWindow(Object window)
Deprecated.The dependency onAWTPermission
creates an impediment to future modularization of the Java platform. Users of this method should instead invokeSecurityManager.checkPermission(java.security.Permission)
directly. This method will be changed in a future release to check the permissionjava.security.AllPermission
.protected int
SecurityManager. classDepth(String name)
Deprecated.This type of security checking is not recommended. It is recommended that thecheckPermission
call be used instead.protected int
SecurityManager. classLoaderDepth()
Deprecated.This type of security checking is not recommended. It is recommended that thecheckPermission
call be used instead.int
Thread. countStackFrames()
Deprecated.The definition of this call depends onThread.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 thecheckPermission
call be used instead.protected Class<?>
SecurityManager. currentLoadedClass()
Deprecated.This type of security checking is not recommended. It is recommended that thecheckPermission
call be used instead.protected Class<?>
ClassLoader. defineClass(byte[] b, int off, int len)
Deprecated.Replaced bydefineClass(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 ofThread.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 theString.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 thecheckPermission
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 theInputStreamReader
andBufferedReader
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 theOutputStreamWriter
,BufferedWriter
, andPrintWriter
classes.protected boolean
SecurityManager. inClass(String name)
Deprecated.This type of security checking is not recommended. It is recommended that thecheckPermission
call be used instead.protected boolean
SecurityManager. inClassLoader()
Deprecated.This type of security checking is not recommended. It is recommended that thecheckPermission
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. SeeThread.suspend()
for details.void
Thread. resume()
Deprecated.This method exists solely for use withThread.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
Runtime. runFinalizersOnExit(boolean value)
Deprecated.This method was originally designed to enable or disable running finalizers on exit. Running finalizers on exit was disabled by default. If enabled, then the finalizers of all objects whose finalizers had not yet been automatically invoked were to be run before the Java runtime exits. That behavior 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
System. runFinalizersOnExit(boolean value)
Deprecated.This method was originally designed to enable or disable running finalizers on exit. Running finalizers on exit was disabled by default. If enabled, then the finalizers of all objects whose finalizers had not yet been automatically invoked were to be run before the Java runtime exits. That behavior 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. SeeThread.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 uncheckedThreadDeath
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 ofstop
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), theinterrupt
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 was originally designed to force a thread to stop and throw a givenThrowable
as an exception. It was inherently unsafe (seeThread.stop()
for details), and furthermore could be used to generate exceptions that the target thread was not prepared to handle. For more information, see Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?.void
ThreadGroup. suspend()
Deprecated.This method is inherently deadlock-prone. SeeThread.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 callingresume
, 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 Constructor and Description 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 theString
constructors that take aCharset
, 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 theString
constructors that take aCharset
, 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 Modifier and Type Field and Description static int
HttpURLConnection. HTTP_SERVER_ERROR
Deprecated.it is misplaced and shouldn't have existed.Methods in java.net with annotations of type Deprecated Modifier and Type Method and Description 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 Constructor and Description 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 Modifier and Type Class and Description class
RMISecurityException
Deprecated.UseSecurityException
instead. Application code should never directly reference this class, andRMISecurityManager
no longer throws this subclass ofjava.lang.SecurityException
.class
RMISecurityManager
Deprecated.UseSecurityManager
instead.class
ServerRuntimeException
Deprecated.no replacementConstructors in java.rmi with annotations of type Deprecated Constructor and Description RMISecurityException(String name)
Deprecated.no replacementRMISecurityException(String name, String arg)
Deprecated.no replacementServerRuntimeException(String s, Exception ex)
Deprecated.no replacement -
Uses of Deprecated in java.rmi.dgc
Methods in java.rmi.dgc with annotations of type Deprecated Modifier and Type Method and Description static boolean
VMID. isUnique()
Deprecated. -
Uses of Deprecated in java.rmi.registry
Classes in java.rmi.registry with annotations of type Deprecated Modifier and Type Interface and Description interface
RegistryHandler
Deprecated.no replacementMethods in java.rmi.registry with annotations of type Deprecated Modifier and Type Method and Description Registry
RegistryHandler. registryImpl(int port)
Deprecated.no replacement. As of the Java 2 platform v1.2, RMI no longer uses theRegistryHandler
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 theRegistryHandler
to obtain the registry's stub. -
Uses of Deprecated in java.rmi.server
Classes in java.rmi.server with annotations of type Deprecated Modifier and Type Interface and Description interface
LoaderHandler
Deprecated.no replacementclass
LogStream
Deprecated.no replacementclass
Operation
Deprecated.no replacementinterface
RemoteCall
Deprecated.no replacement.class
RemoteStub
Deprecated.Statically generated stubs are deprecated, since stubs are generated dynamically. SeeUnicastRemoteObject
for information about dynamic stub generation.interface
ServerRef
Deprecated.No replacement. This interface is unused and is obsolete.interface
Skeleton
Deprecated.no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.class
SkeletonMismatchException
Deprecated.no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.class
SkeletonNotFoundException
Deprecated.no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.class
SocketSecurityException
Deprecated.This class is obsolete. UseExportException
instead.Methods in java.rmi.server with annotations of type Deprecated Modifier and Type Method and Description void
Skeleton. dispatch(Remote obj, RemoteCall theCall, int opnum, long hash)
Deprecated.no replacementvoid
RemoteCall. done()
Deprecated.no replacementvoid
RemoteRef. done(RemoteCall call)
Deprecated.1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall
,invoke
, anddone
), a stub uses a single method,invoke(Remote, Method, Object[], int)
, on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.void
RemoteCall. executeCall()
Deprecated.no replacementstatic RemoteStub
UnicastRemoteObject. exportObject(Remote obj)
Deprecated.This method is deprecated because it supports only static stubs. UseexportObject(Remote, port)
orexportObject(Remote, port, csf, ssf)
instead.static PrintStream
LogStream. getDefaultStream()
Deprecated.no replacementObjectInput
RemoteCall. getInputStream()
Deprecated.no replacementString
Operation. getOperation()
Deprecated.no replacementOperation[]
Skeleton. getOperations()
Deprecated.no replacementOutputStream
LogStream. getOutputStream()
Deprecated.no replacementObjectOutput
RemoteCall. getOutputStream()
Deprecated.no replacementObjectOutput
RemoteCall. getResultStream(boolean success)
Deprecated.no replacementstatic Object
RMIClassLoader. getSecurityContext(ClassLoader loader)
Deprecated.no replacement. As of the Java 2 platform v1.2, RMI no longer uses this method to obtain a class loader's security context.Object
LoaderHandler. getSecurityContext(ClassLoader loader)
Deprecated.no replacementvoid
RemoteRef. invoke(RemoteCall call)
Deprecated.1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall
,invoke
, anddone
), a stub uses a single method,invoke(Remote, Method, Object[], int)
, on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.static Class<?>
RMIClassLoader. loadClass(String name)
Deprecated.replaced byloadClass(String,String)
methodClass<?>
LoaderHandler. loadClass(String name)
Deprecated.no replacementClass<?>
LoaderHandler. loadClass(URL codebase, String name)
Deprecated.no replacementstatic LogStream
LogStream. log(String name)
Deprecated.no replacementRemoteCall
RemoteRef. newCall(RemoteObject obj, Operation[] op, int opnum, long hash)
Deprecated.1.2 style stubs no longer use this method. Instead of using a sequence of method calls on the stub's the remote reference (newCall
,invoke
, anddone
), a stub uses a single method,invoke(Remote, Method, Object[], int)
, on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value.static int
LogStream. parseLevel(String s)
Deprecated.no replacementvoid
RemoteCall. releaseInputStream()
Deprecated.no replacementvoid
RemoteCall. releaseOutputStream()
Deprecated.no replacementstatic void
LogStream. setDefaultStream(PrintStream newDefault)
Deprecated.no replacementvoid
LogStream. setOutputStream(OutputStream out)
Deprecated.no replacementprotected static void
RemoteStub. setRef(RemoteStub stub, RemoteRef ref)
Deprecated.No replacement. ThesetRef
method was intended for setting the remote reference of a remote stub. This is unnecessary, sinceRemoteStub
s can be created and initialized with a remote reference through use of theRemoteStub.RemoteStub(RemoteRef)
constructor.String
LogStream. toString()
Deprecated.no replacementString
Operation. toString()
Deprecated.no replacementvoid
LogStream. write(byte[] b, int off, int len)
Deprecated.no replacementvoid
LogStream. write(int b)
Deprecated.no replacementConstructors in java.rmi.server with annotations of type Deprecated Constructor and Description Operation(String op)
Deprecated.no replacementSkeletonMismatchException(String s)
Deprecated.no replacement -
Uses of Deprecated in java.security
Classes in java.security with annotations of type Deprecated Modifier and Type Interface and Description interface
Certificate
Deprecated.A new certificate handling package is created in the Java platform. This Certificate interface is entirely deprecated and is here to allow for a smooth transition to the new package.class
Identity
Deprecated.This class is no longer used. Its functionality has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.class
IdentityScope
Deprecated.This class is no longer used. Its functionality has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.class
Signer
Deprecated.This class is no longer used. Its functionality has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.Methods in java.security with annotations of type Deprecated Modifier and Type Method and Description protected abstract Object
SignatureSpi. engineGetParameter(String param)
Deprecated.protected abstract void
SignatureSpi. engineSetParameter(String param, Object value)
Deprecated.Replaced byengineSetParameter
.static String
Security. getAlgorithmProperty(String algName, String propName)
Deprecated.This method used to return the value of a proprietary property in the master file of the "SUN" Cryptographic Service Provider in order to determine how to parse algorithm-specific parameters. Use the new provider-based and algorithm-independentAlgorithmParameters
andKeyFactory
engine classes (introduced in the J2SE version 1.2 platform) instead.Object
Signature. getParameter(String param)
Deprecated.void
Signature. setParameter(String param, Object value)
Deprecated.UsesetParameter
. -
Uses of Deprecated in java.sql
Methods in java.sql with annotations of type Deprecated Modifier and Type Method and Description BigDecimal
CallableStatement. getBigDecimal(int parameterIndex, int scale)
Deprecated.usegetBigDecimal(int parameterIndex)
orgetBigDecimal(String parameterName)
BigDecimal
ResultSet. getBigDecimal(int columnIndex, int scale)
Deprecated.UsegetBigDecimal(int columnIndex)
orgetBigDecimal(String columnLabel)
BigDecimal
ResultSet. getBigDecimal(String columnLabel, int scale)
Deprecated.UsegetBigDecimal(int columnIndex)
orgetBigDecimal(String columnLabel)
int
Time. getDate()
Deprecated.int
Time. getDay()
Deprecated.int
Date. getHours()
Deprecated.static PrintStream
DriverManager. getLogStream()
Deprecated.UsegetLogWriter
int
Date. getMinutes()
Deprecated.int
Time. getMonth()
Deprecated.int
Date. getSeconds()
Deprecated.InputStream
ResultSet. getUnicodeStream(int columnIndex)
Deprecated.usegetCharacterStream
in place ofgetUnicodeStream
InputStream
ResultSet. getUnicodeStream(String columnLabel)
Deprecated.usegetCharacterStream
insteadint
Time. getYear()
Deprecated.void
Time. setDate(int i)
Deprecated.void
Date. setHours(int i)
Deprecated.static void
DriverManager. setLogStream(PrintStream out)
Deprecated.UsesetLogWriter
void
Date. setMinutes(int i)
Deprecated.void
Time. setMonth(int i)
Deprecated.void
Date. setSeconds(int i)
Deprecated.void
PreparedStatement. setUnicodeStream(int parameterIndex, InputStream x, int length)
Deprecated.UsesetCharacterStream
void
Time. setYear(int i)
Deprecated.Constructors in java.sql with annotations of type Deprecated Constructor and Description Date(int year, int month, int day)
Deprecated.instead use the constructorDate(long date)
Time(int hour, int minute, int second)
Deprecated.Use the constructor that takes a milliseconds value in place of this constructorTimestamp(int year, int month, int date, int hour, int minute, int second, int nano)
Deprecated.instead use the constructorTimestamp(long millis)
-
Uses of Deprecated in java.util
Methods in java.util with annotations of type Deprecated Modifier and Type Method and Description int
Date. getDate()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_MONTH)
.int
Date. getDay()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_WEEK)
.int
Date. getHours()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.HOUR_OF_DAY)
.int
Date. getMinutes()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.MINUTE)
.int
Date. getMonth()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.MONTH)
.int
Date. getSeconds()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.SECOND)
.int
Date. getTimezoneOffset()
Deprecated.As of JDK version 1.1, replaced by-(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000)
.int
Date. getYear()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.YEAR) - 1900
.static long
Date. parse(String s)
Deprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s)
.void
Properties. save(OutputStream out, String comments)
Deprecated.This method does not throw an IOException if an I/O error occurs while saving the property list. The preferred way to save a properties list is via thestore(OutputStream out, String comments)
method or thestoreToXML(OutputStream os, String comment)
method.void
Date. setDate(int date)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.DAY_OF_MONTH, int date)
.void
Date. setHours(int hours)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.HOUR_OF_DAY, int hours)
.void
Date. setMinutes(int minutes)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.MINUTE, int minutes)
.void
Date. setMonth(int month)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.MONTH, int month)
.void
Date. setSeconds(int seconds)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.SECOND, int seconds)
.void
Date. setYear(int year)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.YEAR, year + 1900)
.String
Date. toGMTString()
Deprecated.As of JDK version 1.1, replaced byDateFormat.format(Date date)
, using a GMTTimeZone
.String
Date. toLocaleString()
Deprecated.As of JDK version 1.1, replaced byDateFormat.format(Date date)
.static long
Date. UTC(int year, int month, int date, int hrs, int min, int sec)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min, sec)
orGregorianCalendar(year + 1900, month, date, hrs, min, sec)
, using a UTCTimeZone
, followed byCalendar.getTime().getTime()
.Constructors in java.util with annotations of type Deprecated Constructor and Description Date(int year, int month, int date)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date)
orGregorianCalendar(year + 1900, month, date)
.Date(int year, int month, int date, int hrs, int min)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min)
orGregorianCalendar(year + 1900, month, date, hrs, min)
.Date(int year, int month, int date, int hrs, int min, int sec)
Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min, sec)
orGregorianCalendar(year + 1900, month, date, hrs, min, sec)
.Date(String s)
Deprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s)
. -
Uses of Deprecated in java.util.jar
Fields in java.util.jar with annotations of type Deprecated Modifier and Type Field and Description static Attributes.Name
Attributes.Name. EXTENSION_INSTALLATION
Deprecated.Extension mechanism will be removed in a future release. Use class path instead.static Attributes.Name
Attributes.Name. IMPLEMENTATION_URL
Deprecated.Extension mechanism will be removed in a future release. Use class path instead.static Attributes.Name
Attributes.Name. IMPLEMENTATION_VENDOR_ID
Deprecated.Extension mechanism will be removed in a future release. Use class path instead.Methods in java.util.jar with annotations of type Deprecated Modifier and Type Method and Description default void
Pack200.Packer. addPropertyChangeListener(PropertyChangeListener listener)
Deprecated.The dependency onPropertyChangeListener
creates a significant impediment to future modularization of the Java platform. This method will be removed in a future release. Applications that need to monitor progress of the packer can poll the value of thePROGRESS
property instead.default void
Pack200.Unpacker. addPropertyChangeListener(PropertyChangeListener listener)
Deprecated.The dependency onPropertyChangeListener
creates a significant impediment to future modularization of the Java platform. This method will be removed in a future release. Applications that need to monitor progress of the unpacker can poll the value of thePROGRESS
property instead.default void
Pack200.Packer. removePropertyChangeListener(PropertyChangeListener listener)
Deprecated.The dependency onPropertyChangeListener
creates a significant impediment to future modularization of the Java platform. This method will be removed in a future release.default void
Pack200.Unpacker. removePropertyChangeListener(PropertyChangeListener listener)
Deprecated.The dependency onPropertyChangeListener
creates a significant impediment to future modularization of the Java platform. This method will be removed in a future release. -
Uses of Deprecated in java.util.logging
Fields in java.util.logging with annotations of type Deprecated Modifier and Type Field and Description static Logger
Logger. global
Deprecated.Initialization of this field is prone to deadlocks. The field must be initialized by the Logger class initialization which may cause deadlocks with the LogManager class initialization. In such cases two class initialization wait for each other to complete. The preferred way to get the global logger object is via the callLogger.getGlobal()
. For compatibility with old JDK versions where theLogger.getGlobal()
is not available use the callLogger.getLogger(Logger.GLOBAL_LOGGER_NAME)
orLogger.getLogger("global")
.Methods in java.util.logging with annotations of type Deprecated Modifier and Type Method and Description void
LogManager. addPropertyChangeListener(PropertyChangeListener l)
Deprecated.The dependency onPropertyChangeListener
creates a significant impediment to future modularization of the Java platform. This method will be removed in a future release. The globalLogManager
can detect changes to the logging configuration by overridding thereadConfiguration
method.void
Logger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)
void
Logger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)
void
Logger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)
void
Logger. logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)
void
LogManager. removePropertyChangeListener(PropertyChangeListener l)
Deprecated.The dependency onPropertyChangeListener
creates a significant impediment to future modularization of the Java platform. This method will be removed in a future release. The globalLogManager
can detect changes to the logging configuration by overridding thereadConfiguration
method. -
Uses of Deprecated in javax.accessibility
Classes in javax.accessibility with annotations of type Deprecated Modifier and Type Class and Description class
AccessibleResourceBundle
Deprecated.This class is deprecated as of version 1.3 of the Java Platform. -
Uses of Deprecated in javax.imageio.spi
Fields in javax.imageio.spi with annotations of type Deprecated Modifier and Type Field and Description static Class[]
ImageReaderSpi. STANDARD_INPUT_TYPE
Deprecated.Instead of using this field, directly create the equivalent array{ ImageInputStream.class }
.static Class[]
ImageWriterSpi. STANDARD_OUTPUT_TYPE
Deprecated.Instead of using this field, directly create the equivalent array{ ImageOutputStream.class }
. -
Uses of Deprecated in javax.jws.soap
Classes in javax.jws.soap with annotations of type Deprecated Modifier and Type Class and Description interface
InitParam
Deprecated.interface
SOAPMessageHandler
Deprecated.interface
SOAPMessageHandlers
Deprecated. -
Uses of Deprecated in javax.management
Classes in javax.management with annotations of type Deprecated Modifier and Type Class and Description class
DefaultLoaderRepository
Deprecated.UseMBeanServer.getClassLoaderRepository()
instead.Methods in javax.management with annotations of type Deprecated Modifier and Type Method and Description ObjectInputStream
MBeanServer. deserialize(ObjectName name, byte[] data)
Deprecated.UsegetClassLoaderFor
to obtain the appropriate class loader for deserialization.ObjectInputStream
MBeanServer. deserialize(String className, byte[] data)
Deprecated.UseMBeanServer.getClassLoaderRepository()
to obtain the class loader repository and use it to deserialize.ObjectInputStream
MBeanServer. deserialize(String className, ObjectName loaderName, byte[] data)
Deprecated.UsegetClassLoader
to obtain the class loader for deserialization.void
StringValueExp. setMBeanServer(MBeanServer s)
Deprecated.void
AttributeValueExp. setMBeanServer(MBeanServer s)
Deprecated.This method has no effect. The MBean Server used to obtain an attribute value isQueryEval.getMBeanServer()
.void
ValueExp. setMBeanServer(MBeanServer s)
Deprecated.This method is not needed because aValueExp
can access the MBean server in which it is being evaluated by usingQueryEval.getMBeanServer()
.Constructors in javax.management with annotations of type Deprecated Constructor and Description AttributeValueExp()
Deprecated.An instance created with this constructor cannot be used in a query. -
Uses of Deprecated in javax.management.loading
Classes in javax.management.loading with annotations of type Deprecated Modifier and Type Class and Description class
DefaultLoaderRepository
Deprecated.UseMBeanServer.getClassLoaderRepository()
} instead. -
Uses of Deprecated in javax.management.monitor
Fields in javax.management.monitor with annotations of type Deprecated Modifier and Type Field and Description protected int
Monitor. alreadyNotified
Deprecated.equivalent toMonitor.alreadyNotifieds
[0].protected String
Monitor. dbgTag
Deprecated.No replacement. -
Uses of Deprecated in javax.management.openmbean
Fields in javax.management.openmbean with annotations of type Deprecated Modifier and Type Field and Description static String[]
OpenType. ALLOWED_CLASSNAMES
Deprecated.UseALLOWED_CLASSNAMES_LIST
instead. -
Uses of Deprecated in javax.security.auth
Classes in javax.security.auth with annotations of type Deprecated Modifier and Type Class and Description class
Policy
Deprecated.as of JDK version 1.4 -- Replaced by java.security.Policy. java.security.Policy has a method:public PermissionCollection getPermissions (java.security.ProtectionDomain pd)
and ProtectionDomain has a constructor:public ProtectionDomain (CodeSource cs, PermissionCollection permissions, ClassLoader loader, Principal[] principals)
These two APIs provide callers the means to query the Policy for Principal-based Permission entries. -
Uses of Deprecated in javax.sql.rowset
Fields in javax.sql.rowset with annotations of type Deprecated Modifier and Type Field and Description static boolean
CachedRowSet. COMMIT_ON_ACCEPT_CHANGES
Deprecated.Because this field is final (it is part of an interface), its value cannot be changed.Methods in javax.sql.rowset with annotations of type Deprecated Modifier and Type Method and Description void
BaseRowSet. setUnicodeStream(int parameterIndex, InputStream x, int length)
Deprecated.getCharacterStream should be used in its place -
Uses of Deprecated in javax.swing
Fields in javax.swing with annotations of type Deprecated Modifier and Type Field and Description protected FocusListener
JComponent.AccessibleJComponent. accessibleFocusHandler
Deprecated.protected boolean
JViewport. backingStore
Deprecated.As of Java 2 platform v1.3protected static Component
ImageIcon. component
Deprecated.since 1.8protected javax.swing.JRootPane.DefaultAction
JRootPane. defaultPressAction
Deprecated.As of Java 2 platform v1.3.protected javax.swing.JRootPane.DefaultAction
JRootPane. defaultReleaseAction
Deprecated.As of Java 2 platform v1.3.protected static MediaTracker
ImageIcon. tracker
Deprecated.since 1.8Methods in javax.swing with annotations of type Deprecated Modifier and Type Method and Description static JScrollPane
JTable. createScrollPaneForTable(JTable aTable)
Deprecated.As of Swing version 1.0.2, replaced bynew JScrollPane(aTable)
.void
JComponent. disable()
Deprecated.As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean)
.static void
FocusManager. disableSwingFocusManager()
Deprecated.as of 1.4, replaced byKeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy)
void
JComponent. enable()
Deprecated.As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean)
.static Component
SwingUtilities. findFocusOwner(Component c)
Deprecated.As of 1.4, replaced byKeyboardFocusManager.getFocusOwner()
.Component
JMenuBar. getComponentAtIndex(int i)
Deprecated.replaced bygetComponent(int i)
Component
JPopupMenu. getComponentAtIndex(int i)
Deprecated.replaced byContainer.getComponent(int)
static KeyStroke
KeyStroke. getKeyStroke(char keyChar, boolean onKeyRelease)
Deprecated.use getKeyStroke(char)String
AbstractButton. getLabel()
Deprecated.- Replaced bygetText
JMenuBar
JInternalFrame. getMenuBar()
Deprecated.As of Swing version 1.0.3, replaced bygetJMenuBar()
.JMenuBar
JRootPane. getMenuBar()
Deprecated.As of Swing version 1.0.3 replaced bygetJMenuBar()
.Component
JComponent. getNextFocusableComponent()
Deprecated.As of 1.4, replaced byFocusTraversalPolicy
.Object[]
JList. getSelectedValues()
Deprecated.As of JDK 1.7, replaced byJList.getSelectedValuesList()
String
JPasswordField. getText()
Deprecated.As of Java 2 platform v1.2, replaced bygetPassword
.String
JPasswordField. getText(int offs, int len)
Deprecated.As of Java 2 platform v1.2, replaced bygetPassword
.Rectangle
ScrollPaneLayout. getViewportBorderBounds(JScrollPane scrollpane)
Deprecated.As of JDK version Swing1.1 replaced byJScrollPane.getViewportBorderBounds()
.void
JComponent. hide()
Deprecated.boolean
JViewport. isBackingStoreEnabled()
Deprecated.As of Java 2 platform v1.3, replaced bygetScrollMode()
.static boolean
FocusManager. isFocusManagerEnabled()
Deprecated.As of 1.4, replaced byKeyboardFocusManager.getDefaultFocusTraversalPolicy()
boolean
JComponent. isManagingFocus()
Deprecated.As of 1.4, replaced byComponent.setFocusTraversalKeys(int, Set)
andContainer.setFocusCycleRoot(boolean)
.boolean
JComponent. requestDefaultFocus()
Deprecated.As of 1.4, replaced byFocusTraversalPolicy.getDefaultComponent(Container).requestFocus()
void
JComponent. reshape(int x, int y, int w, int h)
Deprecated.As of JDK 5, replaced byComponent.setBounds(int, int, int, int)
.Moves and resizes this component.
void
JViewport. setBackingStoreEnabled(boolean enabled)
Deprecated.As of Java 2 platform v1.3, replaced bysetScrollMode()
.void
AbstractButton. setLabel(String label)
Deprecated.- Replaced bysetText(text)
void
JInternalFrame. setMenuBar(JMenuBar m)
Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar m)
.void
JRootPane. setMenuBar(JMenuBar menu)
Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar menu)
.void
JComponent. setNextFocusableComponent(Component aComponent)
Deprecated.As of 1.4, replaced byFocusTraversalPolicy
void
JTable. sizeColumnsToFit(boolean lastColumnOnly)
Deprecated.As of Swing version 1.0.3, replaced bydoLayout()
. -
Uses of Deprecated in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic with annotations of type Deprecated Modifier and Type Field and Description protected KeyStroke
BasicDesktopPaneUI. closeKey
Deprecated.As of 1.3.protected KeyStroke
BasicSplitPaneUI. dividerResizeToggleKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicToolBarUI. downKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicSplitPaneUI. downKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicTabbedPaneUI. downKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicSplitPaneUI. endKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicSplitPaneUI. homeKey
Deprecated.As of Java 2 platform v1.3.protected ActionListener
BasicSplitPaneUI. keyboardDownRightListener
Deprecated.As of Java 2 platform v1.3.protected ActionListener
BasicSplitPaneUI. keyboardEndListener
Deprecated.As of Java 2 platform v1.3.protected ActionListener
BasicSplitPaneUI. keyboardHomeListener
Deprecated.As of Java 2 platform v1.3.protected ActionListener
BasicSplitPaneUI. keyboardResizeToggleListener
Deprecated.As of Java 2 platform v1.3.protected ActionListener
BasicSplitPaneUI. keyboardUpLeftListener
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicToolBarUI. leftKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicSplitPaneUI. leftKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicTabbedPaneUI. leftKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicDesktopPaneUI. maximizeKey
Deprecated.As of 1.3.protected KeyStroke
BasicDesktopPaneUI. minimizeKey
Deprecated.As of 1.3.protected KeyStroke
BasicDesktopPaneUI. navigateKey
Deprecated.As of 1.3.protected KeyStroke
BasicDesktopPaneUI. navigateKey2
Deprecated.As of 1.3.protected KeyStroke
BasicInternalFrameUI. openMenuKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicToolBarUI. rightKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicSplitPaneUI. rightKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicTabbedPaneUI. rightKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicToolBarUI. upKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicSplitPaneUI. upKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicTabbedPaneUI. upKey
Deprecated.As of Java 2 platform v1.3.Methods in javax.swing.plaf.basic with annotations of type Deprecated Modifier and Type Method and Description protected ActionListener
BasicSplitPaneUI. createKeyboardDownRightListener()
Deprecated.As of Java 2 platform v1.3.protected ActionListener
BasicSplitPaneUI. createKeyboardEndListener()
Deprecated.As of Java 2 platform v1.3.protected ActionListener
BasicSplitPaneUI. createKeyboardHomeListener()
Deprecated.As of Java 2 platform v1.3.protected ActionListener
BasicSplitPaneUI. createKeyboardResizeToggleListener()
Deprecated.As of Java 2 platform v1.3.protected ActionListener
BasicSplitPaneUI. createKeyboardUpLeftListener()
Deprecated.As of Java 2 platform v1.3.protected int
BasicSplitPaneUI. getDividerBorderSize()
Deprecated.As of Java 2 platform v1.3, instead set the border on the divider. -
Uses of Deprecated in javax.swing.plaf.metal
Classes in javax.swing.plaf.metal with annotations of type Deprecated Modifier and Type Class and Description class
MetalComboBoxUI.MetalComboPopup
Deprecated.As of Java 2 platform v1.4.Methods in javax.swing.plaf.metal with annotations of type Deprecated Modifier and Type Method and Description protected void
MetalComboBoxUI. editablePropertyChanged(PropertyChangeEvent e)
Deprecated.As of Java 2 platform v1.4.protected void
MetalComboBoxUI. removeListeners()
Deprecated.As of Java 2 platform v1.4.void
MetalScrollPaneUI. uninstallListeners(JScrollPane scrollPane)
Deprecated.- Replaced byMetalScrollPaneUI.uninstallListeners(JComponent)
-
Uses of Deprecated in javax.swing.table
Fields in javax.swing.table with annotations of type Deprecated Modifier and Type Field and Description protected int
TableColumn. resizedPostingDisableCount
Deprecated.as of Java 2 platform v1.3Methods in javax.swing.table with annotations of type Deprecated Modifier and Type Method and Description void
TableColumn. disableResizedPosting()
Deprecated.as of Java 2 platform v1.3void
TableColumn. enableResizedPosting()
Deprecated.as of Java 2 platform v1.3 -
Uses of Deprecated in javax.swing.text
Classes in javax.swing.text with annotations of type Deprecated Modifier and Type Class and Description class
DefaultTextUI
Deprecated.class
TableView.TableCell
Deprecated.A table cell can now be any View implementation.Methods in javax.swing.text with annotations of type Deprecated Modifier and Type Method and Description protected TableView.TableCell
TableView. createTableCell(Element elem)
Deprecated.Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.protected FontMetrics
LabelView. getFontMetrics()
Deprecated.FontMetrics are not used for glyph rendering when running in the JDK.Shape
View. modelToView(int pos, Shape a)
Deprecated.int
View. viewToModel(float x, float y, Shape a)
Deprecated. -
Uses of Deprecated in javax.swing.text.html
Fields in javax.swing.text.html with annotations of type Deprecated Modifier and Type Field and Description static String
FormView. RESET
Deprecated.As of 1.3, value comes from UIManager UIManager property FormView.resetButtonTextstatic String
FormView. SUBMIT
Deprecated.As of 1.3, value now comes from UIManager property FormView.submitButtonTextMethods in javax.swing.text.html with annotations of type Deprecated Modifier and Type Method and Description protected void
HTMLEditorKit.InsertHTMLTextAction. insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
Deprecated.As of Java 2 platform v1.3, use insertAtBoundary -
Uses of Deprecated in javax.swing.tree
Methods in javax.swing.tree with annotations of type Deprecated Modifier and Type Method and Description protected void
DefaultTreeSelectionModel. notifyPathChange(Vector<?> changedPaths, TreePath oldLeadSelection)
Deprecated.As of JDK version 1.7 -
Uses of Deprecated in org.omg.CORBA
Classes in org.omg.CORBA with annotations of type Deprecated Modifier and Type Class and Description class
DynamicImplementation
Deprecated.org.omg.CORBA.DynamicImplementationinterface
DynAny
Deprecated.Use the new DynAny insteadinterface
DynArray
Deprecated.Use the new DynArray insteadinterface
DynEnum
Deprecated.Use the new DynEnum insteadinterface
DynFixed
Deprecated.Use the new DynFixed insteadinterface
DynSequence
Deprecated.Use the new DynSequence insteadinterface
DynStruct
Deprecated.Use the new DynStruct insteadinterface
DynUnion
Deprecated.Use the new DynUnion insteadinterface
DynValue
Deprecated.Use the new DynValue insteadclass
Principal
Deprecated.Deprecated by CORBA 2.2.class
PrincipalHolder
Deprecated.Deprecated by CORBA 2.2.Methods in org.omg.CORBA with annotations of type Deprecated Modifier and Type Method and Description DynAny
ORB. create_basic_dyn_any(TypeCode type)
Deprecated.Use the new DynAnyFactory API insteadDynAny
ORB. create_dyn_any(Any value)
Deprecated.Use the new DynAnyFactory API insteadDynArray
ORB. create_dyn_array(TypeCode type)
Deprecated.Use the new DynAnyFactory API insteadDynEnum
ORB. create_dyn_enum(TypeCode type)
Deprecated.Use the new DynAnyFactory API insteadDynSequence
ORB. create_dyn_sequence(TypeCode type)
Deprecated.Use the new DynAnyFactory API insteadDynStruct
ORB. create_dyn_struct(TypeCode type)
Deprecated.Use the new DynAnyFactory API insteadDynUnion
ORB. create_dyn_union(TypeCode type)
Deprecated.Use the new DynAnyFactory API insteadabstract TypeCode
ORB. create_recursive_sequence_tc(int bound, int offset)
Deprecated.Use a combination of create_recursive_tc and create_sequence_tc insteadvoid
ServerRequest. except(Any any)
Deprecated.use set_exception()Principal
Any. extract_Principal()
Deprecated.Deprecated by CORBA 2.2.Current
ORB. get_current()
Deprecated.useresolve_initial_references
.void
Any. insert_Principal(Principal p)
Deprecated.Deprecated by CORBA 2.2.void
DynamicImplementation. invoke(ServerRequest request)
Deprecated.Deprecated by Portable Object Adapterbyte[]
Principal. name()
Deprecated.Deprecated by CORBA 2.2.void
Principal. name(byte[] value)
Deprecated.Deprecated by CORBA 2.2.String
ServerRequest. op_name()
Deprecated.use operation()void
ServerRequest. params(NVList params)
Deprecated.use the methodarguments
void
ServerRequest. result(Any any)
Deprecated.use the methodset_result
Constructors in org.omg.CORBA with annotations of type Deprecated Constructor and Description TCKind(int _value)
Deprecated.Do not use this constructor as this method should be private according to the OMG specification. UseTCKind.from_int(int)
instead. -
Uses of Deprecated in org.omg.CORBA.portable
Methods in org.omg.CORBA.portable with annotations of type Deprecated Modifier and Type Method and Description Principal
InputStream. read_Principal()
Deprecated.Deprecated by CORBA 2.2.void
OutputStream. write_Principal(Principal value)
Deprecated.Deprecated by CORBA 2.2.
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.