Uses of Annotation Interface
java.lang.Deprecated
Package
Description
This is the core package of the Java Debug
Interface (JDI), it defines mirrors for values, types, and the target
VirtualMachine itself - as well bootstrapping facilities.
This package contains JDK extensions to the standard implementation of
the
java.lang.management
API and also defines the management
interface for some other components of the platform.Provides a simple high-level Http server API, which can be used to build
embedded HTTP servers.
Provides interfaces to represent source code as abstract syntax
trees (AST).
This package provides a legacy entry point for the javac tool.
Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides interfaces and classes for transferring data between and within
applications.
Provides interfaces and classes for dealing with different types of events
fired by AWT components.
Provides classes and interfaces for producing rendering-independent images.
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
Provides classes and interfaces relating to bean context.
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
The
java.lang.invoke
package provides low-level primitives for interacting
with the Java Virtual Machine.Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in the Java runtime.
Provides reference-object classes, which support a limited degree
of interaction with the garbage collector.
Provides classes and interfaces for obtaining reflective information about
classes and objects.
Provides classes for performing arbitrary-precision integer
arithmetic (
BigInteger
) and arbitrary-precision decimal
arithmetic (BigDecimal
).Provides the classes for implementing networking applications.
Provides the RMI package.
Provides classes and interface for RMI distributed
garbage-collection (DGC).
Provides a class and two interfaces for the RMI registry.
Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
Provides interfaces for generating RSA (Rivest, Shamir and
Adleman AsymmetricCipher algorithm)
keys as defined in the RSA Laboratory Technical Note
PKCS#1, and DSA (Digital Signature
Algorithm) keys as defined in NIST's FIPS-186.
Provides classes and interfaces for key specifications and algorithm
parameter specifications.
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
Java programming language.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
A small toolkit of classes that support lock-free thread-safe
programming on single variables.
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.
Provides the classes and interfaces of
the Java 2 platform's core logging facilities.
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
Provides the classes and interfaces for cryptographic
operations.
Provides interfaces for Diffie-Hellman keys as defined in RSA
Laboratories' PKCS #3.
Provides classes and interfaces for key specifications and
algorithm parameter specifications.
A package of the Java Image I/O API containing the plug-in interfaces for
readers, writers, transcoders, and streams, and a runtime registry.
A package of the Java Image I/O API dealing with low-level I/O from files and
streams.
Utilities to assist in the processing of
program elements and
types.
Provides the core classes for the Java Management Extensions.
Provides the classes which implement advanced dynamic
loading.
Provides the definition of the monitor classes.
Provides the open data types and Open MBean descriptor classes.
Provides the definition of the Relation Service.
Interfaces for remote access to
JMX MBean servers.
Provides the classes and interfaces for accessing naming services.
Extends the
javax.naming
package to provide functionality
for accessing directory services.Provides classes for the secure socket package.
This package provides a framework for authentication and
authorization.
Provides classes for public key certificates.
Standard interfaces and base classes for JDBC
RowSet
implementations.Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Provides user interface objects that combine two or more look and feels.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces for dealing with
javax.swing.JTable
.Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.Provides classes and interfaces for dealing with
javax.swing.JTree
.Provides interfaces for tools which can be invoked from a program,
for example, compilers.
Defines interfaces and classes for the Streaming API for XML (StAX).
Platform specific socket options for the
java.net
and java.nio.channels
socket classes.This package presents a framework that allows application developers to
make use of security services like authentication, data integrity and
data confidentiality from a variety of underlying security mechanisms
like Kerberos, using a unified API.
Provides the interfaces for the Simple API for XML (SAX).
Provides helper classes, including
support for bootstrapping SAX-based applications.
-
Uses of Deprecated in com.sun.jdi
Modifier and TypeClassDescriptionclass
Deprecated.This exception is no longer thrownclass
Deprecated.This exception is no longer thrownModifier and TypeMethodDescriptionboolean
VirtualMachine.canAddMethod()
Deprecated.A JVM TI based JDWP back-end will never set this capability to true.boolean
VirtualMachine.canUnrestrictedlyRedefineClasses()
Deprecated.A JVM TI based JDWP back-end will never set this capability to true.ModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Uses of Deprecated in com.sun.management
Modifier and TypeMethodDescriptiondefault long
OperatingSystemMXBean.getFreePhysicalMemorySize()
Deprecated.UseOperatingSystemMXBean.getFreeMemorySize()
instead of this historically named method.default double
OperatingSystemMXBean.getSystemCpuLoad()
Deprecated.UseOperatingSystemMXBean.getCpuLoad()
instead of this historically named method.default long
OperatingSystemMXBean.getTotalPhysicalMemorySize()
Deprecated.UseOperatingSystemMXBean.getTotalMemorySize()
instead of this historically named method. -
Uses of Deprecated in com.sun.net.httpserver
Modifier and TypeMethodDescriptionString[]
HttpsParameters.getCipherSuites()
Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.boolean
HttpsParameters.getNeedClientAuth()
Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.String[]
HttpsParameters.getProtocols()
Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.boolean
HttpsParameters.getWantClientAuth()
Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.void
HttpsParameters.setCipherSuites
(String[] cipherSuites) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.void
HttpsParameters.setNeedClientAuth
(boolean needClientAuth) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.void
HttpsParameters.setProtocols
(String[] protocols) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.void
HttpsParameters.setWantClientAuth
(boolean wantClientAuth) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
. -
Uses of Deprecated in com.sun.source.tree
Modifier and TypeMethodDescriptionCaseTree.getExpression()
Deprecated.Please useCaseTree.getExpressions()
. -
Uses of Deprecated in com.sun.tools.javac
ModifierConstructorDescriptionMain()
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Deprecated in java.applet
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.interface
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.interface
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.interface
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement. -
Uses of Deprecated in java.awt
Modifier and TypeClassDescriptionclass
Deprecated.It is recommended thatAWTEvent
and its subclasses be used insteadModifier and TypeFieldDescriptionstatic final int
Frame.CROSSHAIR_CURSOR
Deprecated.replaced byCursor.CROSSHAIR_CURSOR
.static final int
Frame.DEFAULT_CURSOR
Deprecated.replaced byCursor.DEFAULT_CURSOR
.static final int
Frame.E_RESIZE_CURSOR
Deprecated.replaced byCursor.E_RESIZE_CURSOR
.static final int
Frame.HAND_CURSOR
Deprecated.replaced byCursor.HAND_CURSOR
.static final int
Frame.MOVE_CURSOR
Deprecated.replaced byCursor.MOVE_CURSOR
.static final int
Frame.N_RESIZE_CURSOR
Deprecated.replaced byCursor.N_RESIZE_CURSOR
.static final int
Frame.NE_RESIZE_CURSOR
Deprecated.replaced byCursor.NE_RESIZE_CURSOR
.static final 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 final int
Frame.S_RESIZE_CURSOR
Deprecated.replaced byCursor.S_RESIZE_CURSOR
.static final int
Frame.SE_RESIZE_CURSOR
Deprecated.replaced byCursor.SE_RESIZE_CURSOR
.static final int
Frame.SW_RESIZE_CURSOR
Deprecated.replaced byCursor.SW_RESIZE_CURSOR
.static final int
Frame.TEXT_CURSOR
Deprecated.replaced byCursor.TEXT_CURSOR
.static final int
Frame.W_RESIZE_CURSOR
Deprecated.replaced byCursor.W_RESIZE_CURSOR
.static final int
Frame.WAIT_CURSOR
Deprecated.replaced byCursor.WAIT_CURSOR
.Modifier and TypeMethodDescriptionboolean
Deprecated.As of JDK version 1.1, should register this component as ActionListener on component which fires action events.void
Deprecated.replaced byadd(String)
.void
Deprecated.replaced byadd(String, int)
.void
BorderLayout.addLayoutComponent
(String name, Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object)
.void
CardLayout.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
(String rbName) Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation
.void
Window.applyResourceBundle
(ResourceBundle rb) Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation
.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.void
Component.deliverEvent
(Event e) Deprecated.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)
.void
Container.deliverEvent
(Event e) Deprecated.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)
void
Component.disable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
MenuItem.disable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
Component.enable()
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)
.void
MenuItem.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
Graphics.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.void
PrintJob.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.Polygon.getBoundingBox()
Deprecated.As of JDK version 1.1, replaced bygetBounds()
.Graphics.getClipRect()
Deprecated.As of JDK version 1.1, replaced bygetClipBounds()
.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
.int
Scrollbar.getLineIncrement()
Deprecated.As of JDK version 1.1, replaced bygetUnitIncrement()
.int
FontMetrics.getMaxDecent()
Deprecated.As of JDK version 1.1.1, replaced bygetMaxDescent()
.int
Toolkit.getMenuShortcutKeyMask()
Deprecated.It is recommended that extended modifier keys andToolkit.getMenuShortcutKeyMaskEx()
be used insteadstatic 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()
.int
Scrollbar.getVisible()
Deprecated.As of JDK version 1.1, replaced bygetVisibleAmount()
.boolean
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
Component.hide()
Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean)
.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
TextArea.insertText
(String str, int pos) Deprecated.As of JDK version 1.1, replaced byinsert(String, int)
.Container.insets()
Deprecated.As of JDK version 1.1, replaced bygetInsets()
.boolean
Component.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 bycontains(int, int)
.boolean
Rectangle.inside
(int X, int Y) Deprecated.As of JDK version 1.1, replaced bycontains(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
Deprecated.As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).boolean
Deprecated.As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).void
Component.layout()
Deprecated.As of JDK version 1.1, replaced bydoLayout()
.void
Container.layout()
Deprecated.As of JDK version 1.1, replaced bydoLayout()
.void
ScrollPane.layout()
Deprecated.As of JDK version 1.1, replaced bydoLayout()
.Component.locate
(int x, int y) Deprecated.As of JDK version 1.1, replaced by getComponentAt(int, int).Container.locate
(int x, int y) Deprecated.As of JDK version 1.1, replaced bygetComponentAt(int, int)
.Component.location()
Deprecated.As of JDK version 1.1, replaced bygetLocation()
.boolean
Deprecated.As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).Component.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.Container.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.List.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.List.minimumSize
(int rows) Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int)
.TextArea.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.TextArea.minimumSize
(int rows, int columns) Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int, int)
.TextField.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.TextField.minimumSize
(int columns) Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int)
.boolean
Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).boolean
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
Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).boolean
Deprecated.As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).boolean
Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).void
Component.move
(int x, int y) Deprecated.As of JDK version 1.1, replaced bysetLocation(int, int)
.void
Rectangle.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
Deprecated.As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).boolean
Deprecated.As of JDK version 1.1, replaced bydispatchEvent
.boolean
Deprecated.As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).boolean
Deprecated.As of JDK version 1.1 replaced bydispatchEvent(AWTEvent)
.Component.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.Container.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.List.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.List.preferredSize
(int rows) Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int)
.TextArea.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.TextArea.preferredSize
(int rows, int columns) Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int, int)
.TextField.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.TextField.preferredSize
(int columns) Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int)
.protected static void
AWTKeyStroke.registerSubclass
(Class<?> subclass) Deprecated.void
TextArea.replaceText
(String str, int start, int end) Deprecated.As of JDK version 1.1, replaced byreplaceRange(String, 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
Rectangle.reshape
(int x, int y, int width, int height) Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, 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
Component.resize
(int width, int height) Deprecated.As of JDK version 1.1, replaced bysetSize(int, int)
.void
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
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
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)
.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)
.Component.size()
Deprecated.As of JDK version 1.1, replaced bygetSize()
.ModifierConstructorDescriptionDeprecated.It is recommended thatAWTEvent(Object, int)
be used instead -
Uses of Deprecated in java.awt.datatransfer
Modifier and TypeFieldDescriptionstatic final DataFlavor
DataFlavor.plainTextFlavor
Deprecated.as of 1.3.Modifier and TypeMethodDescriptionboolean
Deprecated.As inconsistent withhashCode()
contract, useDataFlavor.isMimeTypeEqual(String)
instead.protected String
DataFlavor.normalizeMimeType
(String mimeType) Deprecated.This method is never invoked by this implementation from 1.1 onwardsprotected String
DataFlavor.normalizeMimeTypeParameter
(String parameterName, String parameterValue) Deprecated.This method is never invoked by this implementation from 1.1 onwards -
Uses of Deprecated in java.awt.event
Modifier and TypeFieldDescriptionstatic final int
InputEvent.ALT_GRAPH_MASK
Deprecated.It is recommended that ALT_GRAPH_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.ALT_MASK
Deprecated.It is recommended that ALT_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.BUTTON1_MASK
Deprecated.It is recommended that BUTTON1_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.BUTTON2_MASK
Deprecated.It is recommended that BUTTON2_DOWN_MASK andInputEvent.getModifiersEx()
be used instead.static final int
InputEvent.BUTTON3_MASK
Deprecated.It is recommended that BUTTON3_DOWN_MASK andInputEvent.getModifiersEx()
be used instead.static final int
InputEvent.CTRL_MASK
Deprecated.It is recommended that CTRL_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.META_MASK
Deprecated.It is recommended that META_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.SHIFT_MASK
Deprecated.It is recommended that SHIFT_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadModifier and TypeMethodDescriptionstatic String
KeyEvent.getKeyModifiersText
(int modifiers) Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersExText(int)
be used insteadint
InputEvent.getModifiers()
Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersEx()
be used insteadvoid
KeyEvent.setModifiers
(int modifiers) Deprecated.as of JDK1.1.4ModifierConstructorDescriptionDeprecated.as of JDK1.1; useKeyEvent(Component, int, long, int, int, char)
instead -
Uses of Deprecated in java.awt.image.renderable
Modifier and TypeMethodDescriptionvoid
RenderContext.concetenateTransform
(AffineTransform modTransform) Deprecated.replaced byconcatenateTransform(AffineTransform)
.void
RenderContext.preConcetenateTransform
(AffineTransform modTransform) Deprecated.replaced bypreConcatenateTransform(AffineTransform)
. -
Uses of Deprecated in java.beans
Modifier and TypeInterfaceDescriptioninterface
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated.Modifier and TypeMethodDescriptionstatic Object
Beans.instantiate
(ClassLoader cls, String beanName, BeanContext beanContext) Deprecated, for removal: This API element is subject to removal in a future version.this method will be removed when java.beans.beancontext is removedstatic Object
Beans.instantiate
(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer) Deprecated, for removal: This API element is subject to removal in a future version.It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext)
, because the Applet API is deprecated. -
Uses of Deprecated in java.beans.beancontext
Modifier and TypeInterfaceDescriptioninterface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Deprecated in java.io
Modifier and TypeClassDescriptionclass
Deprecated.This class incorrectly assumes that bytes adequately represent characters.class
Deprecated.This class does not properly convert characters into bytes.Modifier and TypeFieldDescriptionWriteAbortedException.detail
Deprecated.This field predates the general-purpose exception chaining facility.Modifier and TypeMethodDescriptionfinal String
DataInputStream.readLine()
Deprecated.This method does not properly convert bytes to characters.ObjectInputStream.readLine()
Deprecated.This method does not properly convert bytes to characters.ByteArrayOutputStream.toString
(int hibyte) Deprecated.This method does not properly convert bytes into characters.File.toURL()
Deprecated.This method does not automatically escape characters that are illegal in URLs.abstract void
ObjectOutputStream.PutField.write
(ObjectOutput out) Deprecated, for removal: This API element is subject to removal in a future version.This method does not write the values contained by thisPutField
object in a proper format, and may result in corruption of the serialization stream.ModifierConstructorDescriptionDeprecated.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
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.The Security Manager is deprecated and subject to removal in a future release.class
Deprecated, for removal: This API element is subject to removal in a future version.Thread.stop()
was originally specified to "stop" a victim thread by causing the victim thread to throw aThreadDeath
.Modifier and TypeFieldDescriptionstatic final Character.UnicodeBlock
Character.UnicodeBlock.SURROGATES_AREA
Deprecated.Instead ofSURROGATES_AREA
, useCharacter.UnicodeBlock.HIGH_SURROGATES
,Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES
, andCharacter.UnicodeBlock.LOW_SURROGATES
.Modifier and TypeMethodDescriptionfinal void
Thread.checkAccess()
Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.final void
ThreadGroup.checkAccess()
Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.void
SecurityManager.checkMulticast
(InetAddress maddr, byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.protected final Class
<?> ClassLoader.defineClass
(byte[] b, int off, int len) Deprecated.Replaced bydefineClass(String, byte[], int, int)
final void
ThreadGroup.destroy()
Deprecated, for removal: This API element is subject to removal in a future version.This method was originally specified to destroy an empty thread group.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[])
orProcessBuilder
should be used instead.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[])
orProcessBuilder
should be used instead.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[], File)
orProcessBuilder
should be used instead.protected final void
Enum.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
Object.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.void
String.getBytes
(int srcBegin, int srcEnd, byte[] dst, int dstBegin) Deprecated.This method does not properly convert characters into bytes.long
Thread.getId()
Deprecated.This method is not final and may be overridden to return a value that is not the thread ID.protected Package
ClassLoader.getPackage
(String name) Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage
to return aPackage
from a parent loader, then the properties exposed by thePackage
may not be as expected in the rest of the program.static Package
Package.getPackage
(String name) Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage
to return aPackage
from a parent loader, then the properties exposed by thePackage
may not be as expected in the rest of the program.static SecurityManager
System.getSecurityManager()
Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.final boolean
ThreadGroup.isDaemon()
Deprecated, for removal: This API element is subject to removal in a future version.This method originally indicated if the thread group is a daemon thread group that is automatically destroyed when its last thread terminates.boolean
ThreadGroup.isDestroyed()
Deprecated, for removal: This API element is subject to removal in a future version.This method originally indicated if the thread group is destroyed.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).int
Runtime.Version.major()
Deprecated.As of Java SE 10, the first element of a version number is not the major-release number but the feature-release counter, incremented for every time-based release.int
Runtime.Version.minor()
Deprecated.As of Java SE 10, the second element of a version number is not the minor-release number but the interim-release counter, incremented for every interim release.Class.newInstance()
Deprecated.This method propagates any exception thrown by the nullary constructor, including a checked exception.void
Runtime.runFinalization()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.static void
System.runFinalization()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.int
Runtime.Version.security()
Deprecated.As of Java SE 10, the third element of a version number is not the security level but the update-release counter, incremented for every update release.final void
ThreadGroup.setDaemon
(boolean daemon) Deprecated, for removal: This API element is subject to removal in a future version.This method originally configured whether the thread group is a daemon thread group that is automatically destroyed when its last thread terminates.static void
System.setSecurityManager
(SecurityManager sm) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.final void
Thread.stop()
Deprecated, for removal: This API element is subject to removal in a future version.This method was originally specified to "stop" a victim thread by causing the victim thread to throw aThreadDeath
.ModifierConstructorDescriptionBoolean
(boolean value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Byte
(byte value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Character
(char value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Double
(double value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Float
(double value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Float
(float value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Integer
(int value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Long
(long value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Short
(short value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.String
(byte[] ascii, int hibyte) Deprecated.This method does not properly convert bytes into characters.String
(byte[] ascii, int hibyte, int offset, int count) Deprecated.This method does not properly convert bytes into characters. -
Uses of Deprecated in java.lang.invoke
Modifier and TypeMethodDescriptionboolean
MethodHandles.Lookup.hasPrivateAccess()
Deprecated.This method was originally designed to testPRIVATE
access that implies full privilege access butMODULE
access has since become independent ofPRIVATE
access. -
Uses of Deprecated in java.lang.management
Modifier and TypeMethodDescriptionint
MemoryMXBean.getObjectPendingFinalizationCount()
Deprecated.Finalization has been deprecated for removal. -
Uses of Deprecated in java.lang.ref
Modifier and TypeMethodDescriptionboolean
Reference.isEnqueued()
Deprecated.This method was originally specified to test if a reference object has been cleared and enqueued but was never implemented to do this test. -
Uses of Deprecated in java.lang.reflect
Modifier and TypeMethodDescriptionstatic Class
<?> Proxy.getProxyClass
(ClassLoader loader, Class<?>... interfaces) Deprecated.Proxy classes generated in a named module are encapsulated and not accessible to code outside its module.boolean
AccessibleObject.isAccessible()
Deprecated.This method is deprecated because its name hints that it checks if the reflected object is accessible when it actually indicates if the checks for Java language access control are suppressed. -
Uses of Deprecated in java.math
Modifier and TypeFieldDescriptionstatic final int
BigDecimal.ROUND_CEILING
Deprecated.UseRoundingMode.CEILING
instead.static final int
BigDecimal.ROUND_DOWN
Deprecated.UseRoundingMode.DOWN
instead.static final int
BigDecimal.ROUND_FLOOR
Deprecated.UseRoundingMode.FLOOR
instead.static final int
BigDecimal.ROUND_HALF_DOWN
Deprecated.UseRoundingMode.HALF_DOWN
instead.static final int
BigDecimal.ROUND_HALF_EVEN
Deprecated.UseRoundingMode.HALF_EVEN
instead.static final int
BigDecimal.ROUND_HALF_UP
Deprecated.UseRoundingMode.HALF_UP
instead.static final int
BigDecimal.ROUND_UNNECESSARY
Deprecated.UseRoundingMode.UNNECESSARY
instead.static final int
BigDecimal.ROUND_UP
Deprecated.UseRoundingMode.UP
instead.Modifier and TypeMethodDescriptionBigDecimal.divide
(BigDecimal divisor, int roundingMode) Deprecated.The methodBigDecimal.divide(BigDecimal, RoundingMode)
should be used in preference to this legacy method.BigDecimal.divide
(BigDecimal divisor, int scale, int roundingMode) Deprecated.The methodBigDecimal.divide(BigDecimal, int, RoundingMode)
should be used in preference to this legacy method.BigDecimal.setScale
(int newScale, int roundingMode) Deprecated.The methodBigDecimal.setScale(int, RoundingMode)
should be used in preference to this legacy method. -
Uses of Deprecated in java.net
Modifier and TypeFieldDescriptionstatic final int
HttpURLConnection.HTTP_SERVER_ERROR
Deprecated.it is misplaced and shouldn't have existed.Modifier and TypeMethodDescriptionstatic String
Deprecated.The resulting string may vary depending on the default charset.static String
Deprecated.The resulting string may vary depending on the default charset.static String
URLConnection.getDefaultRequestProperty
(String key) Deprecated.The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained.MulticastSocket.getInterface()
Deprecated.The network interface may not be uniquely identified by the InetAddress returned.boolean
MulticastSocket.getLoopbackMode()
Deprecated.protected abstract byte
DatagramSocketImpl.getTTL()
Deprecated, for removal: This API element is subject to removal in a future version.use getTimeToLive instead.byte
MulticastSocket.getTTL()
Deprecated, for removal: This API element is subject to removal in a future version.use theMulticastSocket.getTimeToLive()
method instead, which returns an int instead of a byte.void
MulticastSocket.joinGroup
(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to join the multicast group.void
MulticastSocket.leaveGroup
(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to leave the multicast group.void
MulticastSocket.send
(DatagramPacket p, byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.Use the following code or its equivalent instead:static void
DatagramSocket.setDatagramSocketImplFactory
(DatagramSocketImplFactory fac) Deprecated.UseDatagramChannel
, or subclassDatagramSocket
directly.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.void
MulticastSocket.setInterface
(InetAddress inf) Deprecated.The InetAddress may not uniquely identify the network interface.void
MulticastSocket.setLoopbackMode
(boolean disable) Deprecated.static void
ServerSocket.setSocketFactory
(SocketImplFactory fac) Deprecated.Use aServerSocketFactory
and subclassServerSocket
directly.static void
Socket.setSocketImplFactory
(SocketImplFactory fac) Deprecated.Use aSocketFactory
and subclassSocket
directly.protected abstract void
DatagramSocketImpl.setTTL
(byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.use setTimeToLive instead.void
MulticastSocket.setTTL
(byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.use theMulticastSocket.setTimeToLive(int)
method instead, which uses int instead of byte as the type for ttl.protected void
Deprecated.Use setURL(URL, String, String, int, String, String, String, String);ModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.UseDatagramSocket
instead for UDP transport.Socket
(InetAddress host, int port, boolean stream) Deprecated, for removal: This API element is subject to removal in a future version.UseDatagramSocket
instead for UDP transport.Deprecated.UseURI.toURL()
to construct an instance of URL.Deprecated.UseURI.toURL()
to construct an instance of URL.URL
(String protocol, String host, int port, String file, URLStreamHandler handler) Deprecated.UseURL.of(URI, URLStreamHandler)
to construct an instance of URL associated with a custom protocol handler.Deprecated.UseURI.toURL()
to construct an instance of URL.Deprecated.UseURI.toURL()
to construct an instance of URL.URL
(URL context, String spec, URLStreamHandler handler) Deprecated.UseURL.of(URI, URLStreamHandler)
to construct an instance of URL associated with a custom protocol handler. -
Uses of Deprecated in java.rmi
Modifier and TypeClassDescriptionclass
Deprecated.UseSecurityException
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.class
Deprecated.no replacementModifierConstructorDescriptionRMISecurityException
(String name) Deprecated.no replacementRMISecurityException
(String name, String arg) Deprecated.no replacementDeprecated.no replacement -
Uses of Deprecated in java.rmi.dgc
-
Uses of Deprecated in java.rmi.registry
Modifier and TypeMethodDescriptionRegistryHandler.registryImpl
(int port) Deprecated.no replacement.RegistryHandler.registryStub
(String host, int port) Deprecated.no replacement. -
Uses of Deprecated in java.rmi.server
Modifier and TypeInterfaceDescriptioninterface
Deprecated.no replacementclass
Deprecated.no replacementclass
Deprecated.no replacementinterface
Deprecated.no replacement.class
Deprecated.Statically generated stubs are deprecated, since stubs are generated dynamically.interface
Deprecated.No replacement.interface
Deprecated.no replacement.class
Deprecated.no replacement.class
Deprecated.no replacement.class
Deprecated.This class is obsolete.Modifier and TypeFieldDescriptionstatic final long
RemoteRef.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
ServerRef.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.Modifier and TypeMethodDescriptionvoid
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.void
RemoteCall.executeCall()
Deprecated.no replacementstatic RemoteStub
UnicastRemoteObject.exportObject
(Remote obj) Deprecated.This method is deprecated because it supports only static stubs.static PrintStream
LogStream.getDefaultStream()
Deprecated.no replacementRemoteCall.getInputStream()
Deprecated.no replacementOperation.getOperation()
Deprecated.no replacementSkeleton.getOperations()
Deprecated.no replacementLogStream.getOutputStream()
Deprecated.no replacementRemoteCall.getOutputStream()
Deprecated.no replacementRemoteCall.getResultStream
(boolean success) Deprecated.no replacementLoaderHandler.getSecurityContext
(ClassLoader loader) Deprecated.no replacementstatic Object
RMIClassLoader.getSecurityContext
(ClassLoader loader) Deprecated.no replacement.void
RemoteRef.invoke
(RemoteCall call) Deprecated.1.2 style stubs no longer use this method.Class
<?> Deprecated.no replacementClass
<?> Deprecated.no replacementstatic Class
<?> Deprecated.replaced byloadClass(String,String)
methodstatic LogStream
Deprecated.no replacementRemoteRef.newCall
(RemoteObject obj, Operation[] op, int opnum, long hash) Deprecated.1.2 style stubs no longer use this method.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.LogStream.toString()
Deprecated.no replacementOperation.toString()
Deprecated.no replacementvoid
LogStream.write
(byte[] b, int off, int len) Deprecated.no replacementvoid
LogStream.write
(int b) Deprecated.no replacementModifierConstructorDescriptionDeprecated.no replacementDeprecated.no replacement -
Uses of Deprecated in java.security
Modifier and TypeClassDescriptionfinal class
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.final class
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.interface
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.interface
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.static interface
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.Modifier and TypeFieldDescriptionstatic final long
Key.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
PrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
PublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.Modifier and TypeMethodDescriptionprotected 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.final Object
Signature.getParameter
(String param) Deprecated.double
Provider.getVersion()
Deprecated.useProvider.getVersionStr()
instead.final void
Signature.setParameter
(String param, Object value) Deprecated.UsesetParameter
.ModifierConstructorDescriptionprotected
AuthProvider
(String name, double version, String info) Deprecated.useAuthProvider(String, String, String)
instead.protected
Deprecated.useProvider(String, String, String)
instead. -
Uses of Deprecated in java.security.cert
Modifier and TypeMethodDescriptionvoid
X509CRLSelector.addIssuerName
(String name) Deprecated.X509CertSelector.getIssuerAsString()
Deprecated.UseX509CertSelector.getIssuer()
orX509CertSelector.getIssuerAsBytes()
instead.abstract Principal
X509Certificate.getIssuerDN()
Deprecated.UseX509Certificate.getIssuerX500Principal()
instead.abstract Principal
X509CRL.getIssuerDN()
Deprecated.UseX509CRL.getIssuerX500Principal()
instead.X509CertSelector.getSubjectAsString()
Deprecated.UseX509CertSelector.getSubject()
orX509CertSelector.getSubjectAsBytes()
instead.abstract Principal
X509Certificate.getSubjectDN()
Deprecated.UseX509Certificate.getSubjectX500Principal()
instead.void
Deprecated.void
X509CertSelector.setSubject
(String subjectDN) Deprecated. -
Uses of Deprecated in java.security.interfaces
Modifier and TypeFieldDescriptionstatic final long
DSAPrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
DSAPublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
ECPrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
ECPublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
RSAMultiPrimePrivateCrtKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
RSAPrivateCrtKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
RSAPrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
RSAPublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual. -
Uses of Deprecated in java.security.spec
Modifier and TypeFieldDescriptionstatic final PSSParameterSpec
PSSParameterSpec.DEFAULT
Deprecated.This field uses the default values defined in the PKCS #1 standard.ModifierConstructorDescriptionPSSParameterSpec
(int saltLen) Deprecated.This constructor uses the default values defined in the PKCS #1 standard except for the salt length. -
Uses of Deprecated in java.sql
Modifier and TypeMethodDescriptionCallableStatement.getBigDecimal
(int parameterIndex, int scale) Deprecated.usegetBigDecimal(int parameterIndex)
orgetBigDecimal(String parameterName)
ResultSet.getBigDecimal
(int columnIndex, int scale) Deprecated.UsegetBigDecimal(int columnIndex)
orgetBigDecimal(String columnLabel)
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.ResultSet.getUnicodeStream
(int columnIndex) Deprecated.usegetCharacterStream
in place ofgetUnicodeStream
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.ModifierConstructorDescriptionDate
(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
Modifier and TypeClassDescriptionclass
Deprecated.This class and theObserver
interface have been deprecated.interface
Deprecated.This interface has been deprecated.Modifier and TypeMethodDescriptionint
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
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.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)
.Date.toGMTString()
Deprecated.As of JDK version 1.1, replaced byDateFormat.format(Date date)
, using a GMTTimeZone
.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()
.ModifierConstructorDescriptionDate
(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)
.Deprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s)
.Deprecated.Locale constructors have been deprecated.Deprecated.Locale constructors have been deprecated.Deprecated.Locale constructors have been deprecated. -
Uses of Deprecated in java.util.concurrent
Modifier and TypeMethodDescriptionprotected void
ThreadPoolExecutor.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.static <T> Callable
<T> Executors.privilegedCallable
(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.static <T> Callable
<T> Executors.privilegedCallableUsingCurrentClassLoader
(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.static ThreadFactory
Executors.privilegedThreadFactory()
Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release. -
Uses of Deprecated in java.util.concurrent.atomic
Modifier and TypeMethodDescriptionboolean
AtomicBoolean.weakCompareAndSet
(boolean expectedValue, boolean newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicBoolean.compareAndExchange(boolean, boolean)
andAtomicBoolean.compareAndSet(boolean, boolean)
).final boolean
AtomicInteger.weakCompareAndSet
(int expectedValue, int newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicInteger.compareAndExchange(int, int)
andAtomicInteger.compareAndSet(int, int)
).final boolean
AtomicIntegerArray.weakCompareAndSet
(int i, int expectedValue, int newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicIntegerArray.compareAndExchange(int, int, int)
andAtomicIntegerArray.compareAndSet(int, int, int)
).final boolean
AtomicLong.weakCompareAndSet
(long expectedValue, long newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicLong.compareAndExchange(long, long)
andAtomicLong.compareAndSet(long, long)
).final boolean
AtomicLongArray.weakCompareAndSet
(int i, long expectedValue, long newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicLongArray.compareAndExchange(int, long, long)
andAtomicLongArray.compareAndSet(int, long, long)
).final boolean
AtomicReference.weakCompareAndSet
(V expectedValue, V newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicReference.compareAndExchange(V, V)
andAtomicReference.compareAndSet(V, V)
).final boolean
AtomicReferenceArray.weakCompareAndSet
(int i, E expectedValue, E newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicReferenceArray.compareAndExchange(int, E, E)
andAtomicReferenceArray.compareAndSet(int, E, E)
). -
Uses of Deprecated in java.util.jar
Modifier and TypeFieldDescriptionstatic final Attributes.Name
Attributes.Name.EXTENSION_INSTALLATION
Deprecated.Extension mechanism is no longer supported.static final Attributes.Name
Attributes.Name.IMPLEMENTATION_URL
Deprecated.Extension mechanism is no longer supported.static final Attributes.Name
Attributes.Name.IMPLEMENTATION_VENDOR_ID
Deprecated.Extension mechanism is no longer supported. -
Uses of Deprecated in java.util.logging
Modifier and TypeInterfaceDescriptioninterface
Deprecated.Modifier and TypeFieldDescriptionstatic final Logger
Logger.global
Deprecated.Initialization of this field is prone to deadlocks.Modifier and TypeMethodDescriptionvoid
LogManager.checkAccess()
Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.static LoggingMXBean
LogManager.getLoggingMXBean()
Deprecated.java.util.logging.LoggingMXBean
is deprecated and replaced withjava.lang.management.PlatformLoggingMXBean
.int
LogRecord.getThreadID()
Deprecated.Values returned by this method may be synthesized, and may not correspond to the actual thread id, useLogRecord.getLongThreadID()
instead.void
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
LogRecord.setMillis
(long millis) Deprecated.LogRecord maintains timestamps with nanosecond resolution, usingInstant
values.void
LogRecord.setThreadID
(int threadID) Deprecated.This method doesn't allow to pass a long thread id, useLogRecord.setLongThreadID(long)
instead. -
Uses of Deprecated in java.util.zip
Modifier and TypeMethodDescriptionint
Deflater.getTotalIn()
Deprecated.UseDeflater.getBytesRead()
insteadint
Inflater.getTotalIn()
Deprecated.UseInflater.getBytesRead()
insteadint
Deflater.getTotalOut()
Deprecated.UseDeflater.getBytesWritten()
insteadint
Inflater.getTotalOut()
Deprecated.UseInflater.getBytesWritten()
instead -
Uses of Deprecated in javax.accessibility
Modifier and TypeClassDescriptionclass
Deprecated.This class is deprecated as of version 1.3 of the Java Platform -
Uses of Deprecated in javax.crypto
Modifier and TypeFieldDescriptionstatic final long
SecretKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual. -
Uses of Deprecated in javax.crypto.interfaces
Modifier and TypeFieldDescriptionstatic final long
DHPrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
DHPublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
PBEKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual. -
Uses of Deprecated in javax.crypto.spec
Modifier and TypeFieldDescriptionstatic final OAEPParameterSpec
OAEPParameterSpec.DEFAULT
Deprecated.This field uses the default values defined in the PKCS #1 standard. -
Uses of Deprecated in javax.imageio.spi
Modifier and TypeFieldDescriptionstatic final Class<?>[]
ImageReaderSpi.STANDARD_INPUT_TYPE
Deprecated.Instead of using this field, directly create the equivalent array{ ImageInputStream.class }
.static final Class<?>[]
ImageWriterSpi.STANDARD_OUTPUT_TYPE
Deprecated.Instead of using this field, directly create the equivalent array{ ImageOutputStream.class }
.Modifier and TypeMethodDescriptionvoid
ServiceRegistry.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal. -
Uses of Deprecated in javax.imageio.stream
Modifier and TypeMethodDescriptionprotected void
FileCacheImageInputStream.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
FileImageInputStream.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
FileImageOutputStream.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
ImageInputStreamImpl.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
MemoryCacheImageInputStream.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal. -
Uses of Deprecated in javax.lang.model.util
ModifierConstructorDescriptionprotected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
ElementKindVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
ElementKindVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
ElementScanner6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
ElementScanner7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
SimpleAnnotationValueVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
SimpleAnnotationValueVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
SimpleElementVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
SimpleElementVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
SimpleTypeVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
SimpleTypeVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
TypeKindVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
TypeKindVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level. -
Uses of Deprecated in javax.management
Modifier and TypeClassDescriptionclass
Deprecated.UseMBeanServer.getClassLoaderRepository()
instead.Modifier and TypeMethodDescriptiondefault ObjectInputStream
MBeanServer.deserialize
(String className, byte[] data) Deprecated.UseMBeanServer.getClassLoaderRepository()
to obtain the class loader repository and use it to deserialize.default ObjectInputStream
MBeanServer.deserialize
(String className, ObjectName loaderName, byte[] data) Deprecated.UsegetClassLoader
to obtain the class loader for deserialization.default ObjectInputStream
MBeanServer.deserialize
(ObjectName name, byte[] data) Deprecated.UsegetClassLoaderFor
to obtain the appropriate class loader for deserialization.void
AttributeValueExp.setMBeanServer
(MBeanServer s) Deprecated.This method has no effect.void
StringValueExp.setMBeanServer
(MBeanServer s) Deprecated.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()
.ModifierConstructorDescriptionDeprecated.An instance created with this constructor cannot be used in a query. -
Uses of Deprecated in javax.management.loading
Modifier and TypeClassDescriptionclass
Deprecated.UseMBeanServer.getClassLoaderRepository()
instead. -
Uses of Deprecated in javax.management.monitor
Modifier and TypeFieldDescriptionprotected int
Monitor.alreadyNotified
Deprecated.equivalent toMonitor.alreadyNotifieds
[0].protected String
Monitor.dbgTag
Deprecated.No replacement.Modifier and TypeMethodDescriptionCounterMonitor.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byCounterMonitor.getDerivedGauge(ObjectName)
CounterMonitorMBean.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getDerivedGauge(ObjectName)
GaugeMonitor.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byGaugeMonitor.getDerivedGauge(ObjectName)
GaugeMonitorMBean.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byGaugeMonitorMBean.getDerivedGauge(ObjectName)
StringMonitor.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byStringMonitor.getDerivedGauge(ObjectName)
StringMonitorMBean.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byStringMonitorMBean.getDerivedGauge(ObjectName)
long
CounterMonitor.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byCounterMonitor.getDerivedGaugeTimeStamp(ObjectName)
long
CounterMonitorMBean.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)
long
GaugeMonitor.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byGaugeMonitor.getDerivedGaugeTimeStamp(ObjectName)
long
GaugeMonitorMBean.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byGaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)
long
StringMonitor.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byStringMonitor.getDerivedGaugeTimeStamp(ObjectName)
long
StringMonitorMBean.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byStringMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)
Monitor.getObservedObject()
Deprecated.As of JMX 1.2, replaced byMonitor.getObservedObjects()
MonitorMBean.getObservedObject()
Deprecated.As of JMX 1.2, replaced byMonitorMBean.getObservedObjects()
CounterMonitor.getThreshold()
Deprecated.As of JMX 1.2, replaced byCounterMonitor.getThreshold(ObjectName)
CounterMonitorMBean.getThreshold()
Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getThreshold(ObjectName)
void
Monitor.setObservedObject
(ObjectName object) Deprecated.As of JMX 1.2, replaced byMonitor.addObservedObject(javax.management.ObjectName)
void
MonitorMBean.setObservedObject
(ObjectName object) Deprecated.As of JMX 1.2, replaced byMonitorMBean.addObservedObject(javax.management.ObjectName)
void
CounterMonitor.setThreshold
(Number value) Deprecated.As of JMX 1.2, replaced byCounterMonitor.setInitThreshold(java.lang.Number)
void
CounterMonitorMBean.setThreshold
(Number value) Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.setInitThreshold(java.lang.Number)
-
Uses of Deprecated in javax.management.openmbean
Modifier and TypeFieldDescriptionstatic final String[]
OpenType.ALLOWED_CLASSNAMES
Deprecated.UseALLOWED_CLASSNAMES_LIST
instead. -
Uses of Deprecated in javax.management.relation
ModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Uses of Deprecated in javax.management.remote
Modifier and TypeMethodDescriptiondefault MBeanServerConnection
JMXConnector.getMBeanServerConnection
(Subject delegationSubject) Deprecated, for removal: This API element is subject to removal in a future version.This method supported the legacy Subject Delegation feature, which has been removed. -
Uses of Deprecated in javax.naming
Modifier and TypeFieldDescriptionstatic final String
Context.APPLET
Deprecated, for removal: This API element is subject to removal in a future version.An environment property with this name is ignored while constructing an initial context.static final long
Name.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual. -
Uses of Deprecated in javax.naming.directory
Modifier and TypeFieldDescriptionstatic final long
Attribute.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual. -
Uses of Deprecated in javax.net.ssl
Modifier and TypeMethodDescriptionHandshakeCompletedEvent.getPeerCertificateChain()
Deprecated, for removal: This API element is subject to removal in a future version.TheHandshakeCompletedEvent.getPeerCertificates()
method that returns an array ofjava.security.cert.Certificate
should be used instead.default X509Certificate[]
SSLSession.getPeerCertificateChain()
Deprecated, for removal: This API element is subject to removal in a future version.TheSSLSession.getPeerCertificates()
method that returns an array ofjava.security.cert.Certificate
should be used instead. -
Uses of Deprecated in javax.security.auth
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.Modifier and TypeMethodDescriptionstatic <T> T
Subject.doAs
(Subject subject, PrivilegedAction<T> action) Deprecated, for removal: This API element is subject to removal in a future version.This method depends onAccessControlContext
which, in conjunction with the Security Manager, is deprecated and subject to removal in a future release.static <T> T
Subject.doAs
(Subject subject, PrivilegedExceptionAction<T> action) Deprecated, for removal: This API element is subject to removal in a future version.This method depends onAccessControlContext
which, in conjunction with the Security Manager, is deprecated and subject to removal in a future release.static <T> T
Subject.doAsPrivileged
(Subject subject, PrivilegedAction<T> action, AccessControlContext acc) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.static <T> T
Subject.doAsPrivileged
(Subject subject, PrivilegedExceptionAction<T> action, AccessControlContext acc) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release.static Subject
Subject.getSubject
(AccessControlContext acc) Deprecated, for removal: This API element is subject to removal in a future version.This method depends onAccessControlContext
which, in conjunction with the Security Manager, is deprecated and subject to removal in a future release. -
Uses of Deprecated in javax.security.cert
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead. -
Uses of Deprecated in javax.sql.rowset
Modifier and TypeFieldDescriptionstatic final boolean
CachedRowSet.COMMIT_ON_ACCEPT_CHANGES
Deprecated.Because this field is final (it is part of an interface), its value cannot be changed.Modifier and TypeMethodDescriptionvoid
BaseRowSet.setUnicodeStream
(int parameterIndex, InputStream x, int length) Deprecated.getCharacterStream should be used in its place -
Uses of Deprecated in javax.swing
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.protected class
Deprecated.This class is no longer used or needed.Modifier and TypeFieldDescriptionprotected FocusListener
JComponent.AccessibleJComponent.accessibleFocusHandler
Deprecated.protected boolean
JViewport.backingStore
Deprecated.As of Java 2 platform v1.3protected static final Component
ImageIcon.component
Deprecated.since 1.8protected static final MediaTracker
ImageIcon.tracker
Deprecated.since 1.8Modifier and TypeMethodDescriptionvoid
RepaintManager.addDirtyRegion
(Applet applet, int x, int y, int w, int h) Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated.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()
.JMenuBar.getComponentAtIndex
(int i) Deprecated.replaced bygetComponent(int i)
JPopupMenu.getComponentAtIndex
(int i) Deprecated.replaced byContainer.getComponent(int)
static KeyStroke
KeyStroke.getKeyStroke
(char keyChar, boolean onKeyRelease) Deprecated.use getKeyStroke(char)AbstractButton.getLabel()
Deprecated.- Replaced bygetText
JInternalFrame.getMenuBar()
Deprecated.As of Swing version 1.0.3, replaced bygetJMenuBar()
.JRootPane.getMenuBar()
Deprecated.As of Swing version 1.0.3 replaced bygetJMenuBar()
.JComponent.getNextFocusableComponent()
Deprecated.As of 1.4, replaced byFocusTraversalPolicy
.Object[]
JList.getSelectedValues()
Deprecated.As of JDK 1.7, replaced byJList.getSelectedValuesList()
JPasswordField.getText()
Deprecated.As of Java 2 platform v1.2, replaced bygetPassword
.JPasswordField.getText
(int offs, int len) Deprecated.As of Java 2 platform v1.2, replaced bygetPassword
.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)
.void
JViewport.setBackingStoreEnabled
(boolean enabled) Deprecated.As of Java 2 platform v1.3, replaced bysetScrollMode()
.void
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
boolean
InputVerifier.shouldYieldFocus
(JComponent input) Deprecated.void
JTable.sizeColumnsToFit
(boolean lastColumnOnly) Deprecated.As of Swing version 1.0.3, replaced bydoLayout()
. -
Uses of Deprecated in javax.swing.plaf
Modifier and TypeMethodDescriptionTextUI.getToolTipText
(JTextComponent t, Point pt) Deprecated.replaced byTextUI.getToolTipText2D(JTextComponent, Point2D)
abstract Rectangle
TextUI.modelToView
(JTextComponent t, int pos) Deprecated.abstract Rectangle
TextUI.modelToView
(JTextComponent t, int pos, Position.Bias bias) Deprecated.abstract int
TextUI.viewToModel
(JTextComponent t, Point pt) Deprecated.abstract int
TextUI.viewToModel
(JTextComponent t, Point pt, Position.Bias[] biasReturn) Deprecated. -
Uses of Deprecated in javax.swing.plaf.basic
Modifier and TypeClassDescriptionprotected class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.Modifier and TypeFieldDescriptionprotected KeyStroke
BasicDesktopPaneUI.closeKey
Deprecated.As of 1.3.protected KeyStroke
BasicSplitPaneUI.dividerResizeToggleKey
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
BasicToolBarUI.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
BasicSplitPaneUI.leftKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicTabbedPaneUI.leftKey
Deprecated.As of Java 2 platform v1.3.protected KeyStroke
BasicToolBarUI.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
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.rightKey
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.protected KeyStroke
BasicToolBarUI.upKey
Deprecated.As of Java 2 platform v1.3.Modifier and TypeMethodDescriptionprotected JFrame
BasicToolBarUI.createFloatingFrame
(JToolBar toolbar) Deprecated, for removal: This API element is subject to removal in a future version.It is recommended thatBasicToolBarUI.createFloatingWindow(JToolBar)
be used insteadprotected 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.void
BasicDirectoryModel.intervalAdded
(ListDataEvent e) Deprecated, for removal: This API element is subject to removal in a future version.Obsolete method, not used anymore.void
BasicDirectoryModel.intervalRemoved
(ListDataEvent e) Deprecated, for removal: This API element is subject to removal in a future version.Obsolete method, not used anymore.protected boolean
Deprecated, for removal: This API element is subject to removal in a future version.Obsolete method, not used anymore.BasicTextUI.modelToView
(JTextComponent tc, int pos) Deprecated.BasicTextUI.modelToView
(JTextComponent tc, int pos, Position.Bias bias) Deprecated.int
BasicTextUI.viewToModel
(JTextComponent tc, Point pt) Deprecated.int
BasicTextUI.viewToModel
(JTextComponent tc, Point pt, Position.Bias[] biasReturn) Deprecated.ModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.This constructor was exposed erroneously and will be removed in a future release. -
Uses of Deprecated in javax.swing.plaf.metal
Modifier and TypeClassDescriptionclass
Deprecated.As of Java 2 platform v1.4.protected class
Deprecated.As of JDK version 9.protected class
Deprecated.As of JDK version 9.Modifier and TypeMethodDescriptionprotected 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 byBasicScrollPaneUI.uninstallListeners(JComponent)
-
Uses of Deprecated in javax.swing.plaf.multi
Modifier and TypeMethodDescriptionMultiTextUI.modelToView
(JTextComponent a, int b) Deprecated.MultiTextUI.modelToView
(JTextComponent a, int b, Position.Bias c) Deprecated.int
MultiTextUI.viewToModel
(JTextComponent a, Point b) Deprecated.int
MultiTextUI.viewToModel
(JTextComponent a, Point b, Position.Bias[] c) Deprecated. -
Uses of Deprecated in javax.swing.plaf.synth
Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Deprecated in javax.swing.table
Modifier and TypeFieldDescriptionprotected int
TableColumn.resizedPostingDisableCount
Deprecated.as of Java 2 platform v1.3Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeClassDescriptionclass
Deprecated.class
Deprecated.A table cell can now be any View implementation.Modifier and TypeMethodDescriptionprotected 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 int
PasswordView.drawEchoCharacter
(Graphics g, int x, int y, char c) Deprecated.protected void
Deprecated.protected void
Deprecated.protected int
PasswordView.drawSelectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.protected int
PlainView.drawSelectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.protected int
WrappedPlainView.drawSelectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.static final int
Utilities.drawTabbedText
(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) Deprecated.protected int
PasswordView.drawUnselectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.protected int
PlainView.drawUnselectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.protected int
WrappedPlainView.drawUnselectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.static final int
Utilities.getBreakLocation
(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) Deprecated.protected FontMetrics
LabelView.getFontMetrics()
Deprecated.FontMetrics are not used for glyph rendering when running in the JDK.static final int
Utilities.getPositionAbove
(JTextComponent c, int offs, int x) Deprecated.static final int
Utilities.getPositionBelow
(JTextComponent c, int offs, int x) Deprecated.static final int
Utilities.getTabbedTextOffset
(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) Deprecated.static final int
Utilities.getTabbedTextOffset
(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round) Deprecated.static final int
Utilities.getTabbedTextWidth
(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset) Deprecated.JTextComponent.modelToView
(int pos) Deprecated.replaced byJTextComponent.modelToView2D(int)
View.modelToView
(int pos, Shape a) Deprecated.int
JTextComponent.viewToModel
(Point pt) Deprecated.replaced byJTextComponent.viewToModel2D(Point2D)
int
View.viewToModel
(float x, float y, Shape a) Deprecated. -
Uses of Deprecated in javax.swing.text.html
Modifier and TypeFieldDescriptionstatic final String
FormView.RESET
Deprecated.As of 1.3, value comes from UIManager UIManager property FormView.resetButtonTextstatic final String
FormView.SUBMIT
Deprecated.As of 1.3, value now comes from UIManager property FormView.submitButtonTextModifier and TypeMethodDescriptionprotected 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
Modifier and TypeMethodDescriptionprotected void
DefaultTreeSelectionModel.notifyPathChange
(Vector<?> changedPaths, TreePath oldLeadSelection) Deprecated.As of JDK version 1.7 -
Uses of Deprecated in javax.tools
Modifier and TypeMethodDescriptiondefault Iterable
<? extends JavaFileObject> StandardJavaFileManager.getJavaFileObjectsFromPaths
(Iterable<? extends Path> paths) Deprecated.useStandardJavaFileManager.getJavaFileObjectsFromPaths(Collection)
instead, to prevent the possibility of accidentally calling the method with a singlePath
as such an argument.static ClassLoader
ToolProvider.getSystemToolClassLoader()
Deprecated.This method is subject to removal in a future version of Java SE. -
Uses of Deprecated in javax.xml.stream
Modifier and TypeMethodDescriptionstatic XMLEventFactory
XMLEventFactory.newInstance
(String factoryId, ClassLoader classLoader) Deprecated.This method has been deprecated to maintain API consistency.static XMLInputFactory
XMLInputFactory.newInstance
(String factoryId, ClassLoader classLoader) Deprecated.This method has been deprecated to maintain API consistency.static XMLInputFactory
XMLOutputFactory.newInstance
(String factoryId, ClassLoader classLoader) Deprecated.This method has been deprecated because it returns an instance of XMLInputFactory, which is of the wrong class. -
Uses of Deprecated in jdk.net
Modifier and TypeClassDescriptionclass
Deprecated.Java SE 9 added standard methods to set/get socket options, and retrieve the per-Socket supported options effectively rendering this API redundant.Modifier and TypeMethodDescriptionstatic <T> T
Sockets.getOption
(DatagramSocket s, SocketOption<T> name) Deprecated.useDatagramSocket.getOption(SocketOption)
instead.static <T> T
Sockets.getOption
(ServerSocket s, SocketOption<T> name) Deprecated.useServerSocket.getOption(SocketOption)
instead.static <T> T
Sockets.getOption
(Socket s, SocketOption<T> name) Deprecated.useSocket.getOption(SocketOption)
instead.static <T> void
Sockets.setOption
(DatagramSocket s, SocketOption<T> name, T value) Deprecated.useDatagramSocket.setOption(SocketOption, Object)
instead.static <T> void
Sockets.setOption
(ServerSocket s, SocketOption<T> name, T value) Deprecated.useServerSocket.setOption(SocketOption, Object)
instead.static <T> void
Sockets.setOption
(Socket s, SocketOption<T> name, T value) Deprecated.useSocket.setOption(SocketOption, Object)
instead.static Set
<SocketOption<?>> Sockets.supportedOptions
(Class<?> socketType) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Deprecated in org.ietf.jgss
Modifier and TypeMethodDescriptionvoid
GSSContext.acceptSecContext
(InputStream inStream, OutputStream outStream) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.getMIC
(InputStream inStream, OutputStream outStream, MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.int
GSSContext.initSecContext
(InputStream inStream, OutputStream outStream) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.unwrap
(InputStream inStream, OutputStream outStream, MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.verifyMIC
(InputStream tokStream, InputStream msgStream, MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.wrap
(InputStream inStream, OutputStream outStream, MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353. -
Uses of Deprecated in org.xml.sax
Modifier and TypeInterfaceDescriptioninterface
Deprecated.This interface has been replaced by the SAX2Attributes
interface, which includes Namespace support.interface
Deprecated.This interface has been replaced by the SAX2ContentHandler
interface, which includes Namespace support.class
Deprecated.This class works with the deprecatedDocumentHandler
interface.interface
Deprecated.This interface has been replaced by the SAX2XMLReader
interface, which includes Namespace support. -
Uses of Deprecated in org.xml.sax.helpers
Modifier and TypeClassDescriptionclass
Deprecated.This class implements a deprecated interface,AttributeList
; that interface has been replaced byAttributes
, which is implemented in theAttributesImpl
helper class.class
Deprecated.This class works with the deprecatedParser
interface.final class
Deprecated.It is recommended to useSAXParserFactory
instead.