# Uses of Annotation Interface
java.lang.Deprecated

Packages that use Deprecated
Package
Description
com.sun.jdi
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.
com.sun.management
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.
com.sun.net.httpserver
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers.
com.sun.security.jgss
This package defines classes and interfaces for the JDK extensions to the GSS-API.
com.sun.source.tree
Provides interfaces to represent source code as abstract syntax trees (AST).
com.sun.tools.attach
Provides the API to attach to a Java virtual machine.
com.sun.tools.javac
This package provides a legacy entry point for the javac tool.
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.
java.awt.datatransfer
Provides interfaces and classes for transferring data between and within applications.
java.awt.event
Provides interfaces and classes for dealing with different types of events fired by AWT components.
java.awt.image.renderable
Provides classes and interfaces for producing rendering-independent images.
java.beans
Contains classes related to developing beans -- components based on the JavaBeans architecture.
java.beans.beancontext
Provides classes and interfaces relating to bean context.
java.io
Provides for system input and output through data streams, serialization and the file system.
java.lang
Provides classes that are fundamental to the design of the Java programming language.
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.invoke
The `java.lang.invoke` package provides low-level primitives for interacting with the Java Virtual Machine.
java.lang.management
Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.
java.lang.ref
Provides reference-object classes, which support a limited degree of interaction with the garbage collector.
java.lang.reflect
Provides classes and interfaces for obtaining reflective information about classes and objects.
java.math
Provides classes for performing arbitrary-precision integer arithmetic (`BigInteger`) and arbitrary-precision decimal arithmetic (`BigDecimal`).
java.net
Provides the classes for implementing networking applications.
java.nio.file
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
java.rmi
Provides the RMI package.
java.rmi.dgc
Provides classes and interface for RMI distributed garbage-collection (DGC).
java.rmi.registry
Provides a class and two interfaces for the RMI registry.
java.rmi.server
Provides classes and interfaces for supporting the server side of RMI.
java.security
Provides the classes and interfaces for the security framework.
java.security.cert
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
java.security.interfaces
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.
java.security.spec
Provides classes and interfaces for key specifications and algorithm parameter specifications.
java.sql
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
java.util
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.
java.util.concurrent
Utility classes commonly useful in concurrent programming.
java.util.concurrent.atomic
A small toolkit of classes that support lock-free thread-safe programming on single variables.
java.util.jar
Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.
java.util.logging
Provides the classes and interfaces of the Java 2 platform's core logging facilities.
java.util.zip
Provides classes for reading and writing the standard ZIP and GZIP file formats.
javax.accessibility
Defines a contract between user-interface components and an assistive technology that provides access to those components.
javax.crypto
Provides the classes and interfaces for cryptographic operations.
javax.crypto.interfaces
Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.
javax.crypto.spec
Provides classes and interfaces for key specifications and algorithm parameter specifications.
javax.imageio.spi
A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.
javax.lang.model.util
Utilities to assist in the processing of program elements and types.
javax.management
Provides the core classes for the Java Management Extensions.
javax.management.loading
Provides the classes which implement advanced dynamic loading.
javax.management.monitor
Provides the definition of the monitor classes.
javax.management.openmbean
Provides the open data types and Open MBean descriptor classes.
javax.management.relation
Provides the definition of the Relation Service.
javax.management.remote
Interfaces for remote access to JMX MBean servers.
javax.naming
Provides the classes and interfaces for accessing naming services.
javax.naming.directory
Extends the `javax.naming` package to provide functionality for accessing directory services.
javax.net.ssl
Provides classes for the secure socket package.
javax.security.auth
This package provides a framework for authentication and authorization.
javax.security.auth.kerberos
This package contains utility classes related to the Kerberos network authentication protocol.
javax.security.cert
Provides classes for public key certificates.
javax.sound.sampled
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
javax.sql.rowset
Standard interfaces and base classes for JDBC `RowSet` implementations.
javax.swing
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
javax.swing.plaf
Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
javax.swing.plaf.basic
Provides user interface objects built according to the Basic look and feel.
javax.swing.plaf.metal
Provides user interface objects built according to the Java look and feel (once codenamed Metal), which is the default look and feel.
javax.swing.plaf.multi
Provides user interface objects that combine two or more look and feels.
javax.swing.table
Provides classes and interfaces for dealing with `javax.swing.JTable`.
javax.swing.text
Provides classes and interfaces that deal with editable and noneditable text components.
javax.swing.text.html
Provides the class `HTMLEditorKit` and supporting classes for creating HTML text editors.
javax.swing.tree
Provides classes and interfaces for dealing with `javax.swing.JTree`.
javax.tools
Provides interfaces for tools which can be invoked from a program, for example, compilers.
javax.xml.stream
Defines interfaces and classes for the Streaming API for XML (StAX).
jdk.jfr
This package provides classes to create events and control Flight Recorder.
jdk.net
Platform specific socket options for the `java.net` and `java.nio.channels` socket classes.
org.ietf.jgss
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.
org.xml.sax
Provides the interfaces for the Simple API for XML (SAX).
org.xml.sax.helpers
Provides helper classes, including support for bootstrapping SAX-based applications.

## Uses of Deprecated in com.sun.jdi

Classes in com.sun.jdi with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`InvalidCodeIndexException`
Deprecated.
This exception is no longer thrown
`class`
`InvalidLineNumberException`
Deprecated.
This exception is no longer thrown
`final class`
`JDIPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
Methods in com.sun.jdi with annotations of type Deprecated
Modifier and Type
Method
Description
`boolean`
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.
Constructors in com.sun.jdi with annotations of type Deprecated
Modifier
Constructor
Description
``
`Bootstrap()`
Deprecated, for removal: This API element is subject to removal in a future version.

## Uses of Deprecated in com.sun.management

Methods in com.sun.management with annotations of type Deprecated
Modifier and Type
Method
Description
`default long`
OperatingSystemMXBean.`getFreePhysicalMemorySize()`
Deprecated.
Use `OperatingSystemMXBean.getFreeMemorySize()` instead of this historically named method.
`default double`
OperatingSystemMXBean.`getSystemCpuLoad()`
Deprecated.
Use `OperatingSystemMXBean.getCpuLoad()` instead of this historically named method.
`default long`
OperatingSystemMXBean.`getTotalPhysicalMemorySize()`
Deprecated.
Use `OperatingSystemMXBean.getTotalMemorySize()` instead of this historically named method.

## Uses of Deprecated in com.sun.net.httpserver

Methods in com.sun.net.httpserver with annotations of type Deprecated
Modifier and Type
Method
Description
`String[]`
HttpsParameters.`getCipherSuites()`
Deprecated.
It is recommended that the SSL parameters be configured and read through the use of `SSLParameters`.
`boolean`
HttpsParameters.`getNeedClientAuth()`
Deprecated.
It is recommended that the SSL parameters be configured and read through the use of `SSLParameters`.
`String[]`
HttpsParameters.`getProtocols()`
Deprecated.
It is recommended that the SSL parameters be configured and read through the use of `SSLParameters`.
`boolean`
HttpsParameters.`getWantClientAuth()`
Deprecated.
It is recommended that the SSL parameters be configured and read through the use of `SSLParameters`.
`void`
HttpsParameters.`setCipherSuites(String[] cipherSuites)`
Deprecated.
It is recommended that the SSL parameters be configured and read through the use of `SSLParameters`.
`void`
HttpsParameters.`setNeedClientAuth(boolean needClientAuth)`
Deprecated.
It is recommended that the SSL parameters be configured and read through the use of `SSLParameters`.
`void`
HttpsParameters.`setProtocols(String[] protocols)`
Deprecated.
It is recommended that the SSL parameters be configured and read through the use of `SSLParameters`.
`void`
HttpsParameters.`setWantClientAuth(boolean wantClientAuth)`
Deprecated.
It is recommended that the SSL parameters be configured and read through the use of `SSLParameters`.

## Uses of Deprecated in com.sun.security.jgss

Classes in com.sun.security.jgss with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`InquireSecContextPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

## Uses of Deprecated in com.sun.source.tree

Methods in com.sun.source.tree with annotations of type Deprecated
Modifier and Type
Method
Description
`ExpressionTree`
CaseTree.`getExpression()`
Deprecated.
Please use `CaseTree.getExpressions()`.

## Uses of Deprecated in com.sun.tools.attach

Classes in com.sun.tools.attach with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`AttachPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.

## Uses of Deprecated in com.sun.tools.javac

Constructors in com.sun.tools.javac with annotations of type Deprecated
Modifier
Constructor
Description
``
`Main()`
Deprecated, for removal: This API element is subject to removal in a future version.

## Uses of Deprecated in java.awt

Classes in java.awt with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`AWTPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
There is no replacement for this class.
`class`
`Event`
Deprecated.
It is recommended that `AWTEvent` and its subclasses be used instead
Fields in java.awt with annotations of type Deprecated
Modifier and Type
Field
Description
`static final int`
Frame.`CROSSHAIR_CURSOR`
Deprecated.
replaced by `Cursor.CROSSHAIR_CURSOR`.
`static final int`
Frame.`DEFAULT_CURSOR`
Deprecated.
replaced by `Cursor.DEFAULT_CURSOR`.
`static final int`
Frame.`E_RESIZE_CURSOR`
Deprecated.
replaced by `Cursor.E_RESIZE_CURSOR`.
`static final int`
Frame.`HAND_CURSOR`
Deprecated.
replaced by `Cursor.HAND_CURSOR`.
`static final int`
Frame.`MOVE_CURSOR`
Deprecated.
replaced by `Cursor.MOVE_CURSOR`.
`static final int`
Frame.`N_RESIZE_CURSOR`
Deprecated.
replaced by `Cursor.N_RESIZE_CURSOR`.
`static final int`
Frame.`NE_RESIZE_CURSOR`
Deprecated.
replaced by `Cursor.NE_RESIZE_CURSOR`.
`static final int`
Frame.`NW_RESIZE_CURSOR`
Deprecated.
replaced by `Cursor.NW_RESIZE_CURSOR`.
`protected static Cursor[]`
Cursor.`predefined`
Deprecated.
As of JDK version 1.7, the `Cursor.getPredefinedCursor(int)` method should be used instead.
`static final int`
Frame.`S_RESIZE_CURSOR`
Deprecated.
replaced by `Cursor.S_RESIZE_CURSOR`.
`static final int`
Frame.`SE_RESIZE_CURSOR`
Deprecated.
replaced by `Cursor.SE_RESIZE_CURSOR`.
`static final int`
Frame.`SW_RESIZE_CURSOR`
Deprecated.
replaced by `Cursor.SW_RESIZE_CURSOR`.
`static final int`
Frame.`TEXT_CURSOR`
Deprecated.
replaced by `Cursor.TEXT_CURSOR`.
`static final int`
Frame.`W_RESIZE_CURSOR`
Deprecated.
replaced by `Cursor.W_RESIZE_CURSOR`.
`static final int`
Frame.`WAIT_CURSOR`
Deprecated.
replaced by `Cursor.WAIT_CURSOR`.
Methods in java.awt with annotations of type Deprecated
Modifier and Type
Method
Description
`boolean`
Component.`action(Event evt, Object what)`
Deprecated.
As of JDK version 1.1, should register this component as ActionListener on component which fires action events.
`void`
List.`addItem(String item)`
Deprecated.
replaced by `add(String)`.
`void`
List.`addItem(String item, int index)`
Deprecated.
replaced by `add(String, int)`.
`void`
BorderLayout.`addLayoutComponent(String name, Component comp)`
Deprecated.
replaced by `addLayoutComponent(Component, Object)`.
`void`
CardLayout.`addLayoutComponent(String name, Component comp)`
Deprecated.
replaced by `addLayoutComponent(Component, Object)`.
`boolean`
List.`allowsMultipleSelections()`
Deprecated.
As of JDK version 1.1, replaced by `isMultipleMode()`.
`void`
TextArea.`appendText(String str)`
Deprecated.
As of JDK version 1.1, replaced by `append(String)`.
`void`
Window.`applyResourceBundle(String rbName)`
Deprecated.
As of J2SE 1.4, replaced by `Component.applyComponentOrientation`.
`void`
Window.`applyResourceBundle(ResourceBundle rb)`
Deprecated.
As of J2SE 1.4, replaced by `Component.applyComponentOrientation`.
`Rectangle`
Component.`bounds()`
Deprecated.
As of JDK version 1.1, replaced by `getBounds()`.
`void`
List.`clear()`
Deprecated.
As of JDK version 1.1, replaced by `removeAll()`.
`int`
Container.`countComponents()`
Deprecated.
As of JDK version 1.1, replaced by getComponentCount().
`int`
Choice.`countItems()`
Deprecated.
As of JDK version 1.1, replaced by `getItemCount()`.
`int`
List.`countItems()`
Deprecated.
As of JDK version 1.1, replaced by `getItemCount()`.
`int`
Menu.`countItems()`
Deprecated.
As of JDK version 1.1, replaced by `getItemCount()`.
`int`
MenuBar.`countMenus()`
Deprecated.
As of JDK version 1.1, replaced by `getMenuCount()`.
`void`
List.`delItem(int position)`
Deprecated.
replaced by `remove(String)` and `remove(int)`.
`void`
List.`delItems(int start, int end)`
Deprecated.
As of JDK version 1.1, Not for public use in the future.
`void`
Component.`deliverEvent(Event e)`
Deprecated.
As of JDK version 1.1, replaced by `dispatchEvent(AWTEvent e)`.
`void`
Container.`deliverEvent(Event e)`
Deprecated.
As of JDK version 1.1, replaced by `dispatchEvent(AWTEvent e)`
`void`
Component.`disable()`
Deprecated.
As of JDK version 1.1, replaced by `setEnabled(boolean)`.
`void`
MenuItem.`disable()`
Deprecated.
As of JDK version 1.1, replaced by `setEnabled(boolean)`.
`void`
Component.`enable()`
Deprecated.
As of JDK version 1.1, replaced by `setEnabled(boolean)`.
`void`
Component.`enable(boolean b)`
Deprecated.
As of JDK version 1.1, replaced by `setEnabled(boolean)`.
`void`
MenuItem.`enable()`
Deprecated.
As of JDK version 1.1, replaced by `setEnabled(boolean)`.
`void`
MenuItem.`enable(boolean b)`
Deprecated.
As of JDK version 1.1, replaced by `setEnabled(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.
`Rectangle`
Polygon.`getBoundingBox()`
Deprecated.
As of JDK version 1.1, replaced by `getBounds()`.
`Rectangle`
Graphics.`getClipRect()`
Deprecated.
As of JDK version 1.1, replaced by `getClipBounds()`.
`Checkbox`
CheckboxGroup.`getCurrent()`
Deprecated.
As of JDK version 1.1, replaced by `getSelectedCheckbox()`.
`int`
Frame.`getCursorType()`
Deprecated.
As of JDK version 1.1, replaced by `Component.getCursor()`.
`abstract String[]`
Toolkit.`getFontList()`
Deprecated.
see `GraphicsEnvironment.getAvailableFontFamilyNames()`
`abstract FontMetrics`
Toolkit.`getFontMetrics(Font font)`
Deprecated.
As of JDK version 1.2, replaced by the `Font` method `getLineMetrics`.
`int`
Scrollbar.`getLineIncrement()`
Deprecated.
As of JDK version 1.1, replaced by `getUnitIncrement()`.
`int`
FontMetrics.`getMaxDecent()`
Deprecated.
As of JDK version 1.1.1, replaced by `getMaxDescent()`.
`int`
Toolkit.`getMenuShortcutKeyMask()`
Deprecated.
It is recommended that extended modifier keys and `Toolkit.getMenuShortcutKeyMaskEx()` be used instead
`static ComponentOrientation`
ComponentOrientation.`getOrientation(ResourceBundle bdl)`
Deprecated.
As of J2SE 1.4, use `ComponentOrientation.getOrientation(java.util.Locale)`.
`int`
Scrollbar.`getPageIncrement()`
Deprecated.
As of JDK version 1.1, replaced by `getBlockIncrement()`.
`int`
Scrollbar.`getVisible()`
Deprecated.
As of JDK version 1.1, replaced by `getVisibleAmount()`.
`final String`
Window.`getWarningString()`
Deprecated, for removal: This API element is subject to removal in a future version.
since JDK 24
`boolean`
Component.`gotFocus(Event evt, Object what)`
Deprecated.
As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).
`boolean`
Component.`handleEvent(Event evt)`
Deprecated.
As of JDK version 1.1 replaced by processEvent(AWTEvent).
`void`
Component.`hide()`
Deprecated.
As of JDK version 1.1, replaced by `setVisible(boolean)`.
`void`
Dialog.`hide()`
Deprecated.
As of JDK version 1.5, replaced by `setVisible(boolean)`.
`void`
Window.`hide()`
Deprecated.
As of JDK version 1.5, replaced by `Window.setVisible(boolean)`.
`void`
TextArea.`insertText(String str, int pos)`
Deprecated.
As of JDK version 1.1, replaced by `insert(String, int)`.
`Insets`
Container.`insets()`
Deprecated.
As of JDK version 1.1, replaced by `getInsets()`.
`boolean`
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 by `contains(int, int)`.
`boolean`
Rectangle.`inside(int X, int Y)`
Deprecated.
As of JDK version 1.1, replaced by `contains(int, int)`.
`boolean`
Component.`isFocusTraversable()`
Deprecated.
As of 1.4, replaced by `isFocusable()`.
`boolean`
List.`isSelected(int index)`
Deprecated.
As of JDK version 1.1, replaced by `isIndexSelected(int)`.
`boolean`
Component.`keyDown(Event evt, int key)`
Deprecated.
As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).
`boolean`
Component.`keyUp(Event evt, int key)`
Deprecated.
As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).
`void`
Component.`layout()`
Deprecated.
As of JDK version 1.1, replaced by `doLayout()`.
`void`
Container.`layout()`
Deprecated.
As of JDK version 1.1, replaced by `doLayout()`.
`void`
ScrollPane.`layout()`
Deprecated.
As of JDK version 1.1, replaced by `doLayout()`.
`Component`
Component.`locate(int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by getComponentAt(int, int).
`Component`
Container.`locate(int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by `getComponentAt(int, int)`.
`Point`
Component.`location()`
Deprecated.
As of JDK version 1.1, replaced by `getLocation()`.
`boolean`
Component.`lostFocus(Event evt, Object what)`
Deprecated.
As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).
`Dimension`
Component.`minimumSize()`
Deprecated.
As of JDK version 1.1, replaced by `getMinimumSize()`.
`Dimension`
Container.`minimumSize()`
Deprecated.
As of JDK version 1.1, replaced by `getMinimumSize()`.
`Dimension`
List.`minimumSize()`
Deprecated.
As of JDK version 1.1, replaced by `getMinimumSize()`.
`Dimension`
List.`minimumSize(int rows)`
Deprecated.
As of JDK version 1.1, replaced by `getMinimumSize(int)`.
`Dimension`
TextArea.`minimumSize()`
Deprecated.
As of JDK version 1.1, replaced by `getMinimumSize()`.
`Dimension`
TextArea.`minimumSize(int rows, int columns)`
Deprecated.
As of JDK version 1.1, replaced by `getMinimumSize(int, int)`.
`Dimension`
TextField.`minimumSize()`
Deprecated.
As of JDK version 1.1, replaced by `getMinimumSize()`.
`Dimension`
TextField.`minimumSize(int columns)`
Deprecated.
As of JDK version 1.1, replaced by `getMinimumSize(int)`.
`boolean`
Component.`mouseDown(Event evt, int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
`boolean`
Component.`mouseDrag(Event evt, int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).
`boolean`
Component.`mouseEnter(Event evt, int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
`boolean`
Component.`mouseExit(Event evt, int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
`boolean`
Component.`mouseMove(Event evt, int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).
`boolean`
Component.`mouseUp(Event evt, int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
`void`
Component.`move(int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by `setLocation(int, int)`.
`void`
Rectangle.`move(int x, int y)`
Deprecated.
As of JDK version 1.1, replaced by `setLocation(int, int)`.
`void`
Component.`nextFocus()`
Deprecated.
As of JDK version 1.1, replaced by transferFocus().
`boolean`
Component.`postEvent(Event e)`
Deprecated.
As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).
`boolean`
MenuComponent.`postEvent(Event evt)`
Deprecated.
As of JDK version 1.1, replaced by `dispatchEvent`.
`boolean`
MenuContainer.`postEvent(Event evt)`
Deprecated.
As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).
`boolean`
Window.`postEvent(Event e)`
Deprecated.
As of JDK version 1.1 replaced by `dispatchEvent(AWTEvent)`.
`Dimension`
Component.`preferredSize()`
Deprecated.
As of JDK version 1.1, replaced by `getPreferredSize()`.
`Dimension`
Container.`preferredSize()`
Deprecated.
As of JDK version 1.1, replaced by `getPreferredSize()`.
`Dimension`
List.`preferredSize()`
Deprecated.
As of JDK version 1.1, replaced by `getPreferredSize()`.
`Dimension`
List.`preferredSize(int rows)`
Deprecated.
As of JDK version 1.1, replaced by `getPreferredSize(int)`.
`Dimension`
TextArea.`preferredSize()`
Deprecated.
As of JDK version 1.1, replaced by `getPreferredSize()`.
`Dimension`
TextArea.`preferredSize(int rows, int columns)`
Deprecated.
As of JDK version 1.1, replaced by `getPreferredSize(int, int)`.
`Dimension`
TextField.`preferredSize()`
Deprecated.
As of JDK version 1.1, replaced by `getPreferredSize()`.
`Dimension`
TextField.`preferredSize(int columns)`
Deprecated.
As of JDK version 1.1, replaced by `getPreferredSize(int)`.
`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 by `replaceRange(String, int, int)`.
`void`
Component.`reshape(int x, int y, int width, int height)`
Deprecated.
As of JDK version 1.1, replaced by `setBounds(int, int, int, int)`.
`void`
Rectangle.`reshape(int x, int y, int width, int height)`
Deprecated.
As of JDK version 1.1, replaced by `setBounds(int, int, int, int)`.
`void`
Window.`reshape(int x, int y, int width, int height)`
Deprecated.
As of JDK version 1.1, replaced by `setBounds(int, int, int, int)`.
`void`
Component.`resize(int width, int height)`
Deprecated.
As of JDK version 1.1, replaced by `setSize(int, int)`.
`void`
Component.`resize(Dimension d)`
Deprecated.
As of JDK version 1.1, replaced by `setSize(Dimension)`.
`void`
Rectangle.`resize(int width, int height)`
Deprecated.
As of JDK version 1.1, replaced by `setSize(int, int)`.
`void`
CheckboxGroup.`setCurrent(Checkbox box)`
Deprecated.
As of JDK version 1.1, replaced by `setSelectedCheckbox(Checkbox)`.
`void`
Frame.`setCursor(int cursorType)`
Deprecated.
As of JDK version 1.1, replaced by `Component.setCursor(Cursor)`.
`void`
TextField.`setEchoCharacter(char c)`
Deprecated.
As of JDK version 1.1, replaced by `setEchoChar(char)`.
`void`
Scrollbar.`setLineIncrement(int v)`
Deprecated.
As of JDK version 1.1, replaced by `setUnitIncrement(int)`.
`void`
List.`setMultipleSelections(boolean b)`
Deprecated.
As of JDK version 1.1, replaced by `setMultipleMode(boolean)`.
`void`
Scrollbar.`setPageIncrement(int v)`
Deprecated.
As of JDK version 1.1, replaced by `setBlockIncrement()`.
`void`
Component.`show()`
Deprecated.
As of JDK version 1.1, replaced by `setVisible(boolean)`.
`void`
Component.`show(boolean b)`
Deprecated.
As of JDK version 1.1, replaced by `setVisible(boolean)`.
`void`
Dialog.`show()`
Deprecated.
As of JDK version 1.5, replaced by `setVisible(boolean)`.
`void`
Window.`show()`
Deprecated.
As of JDK version 1.5, replaced by `Window.setVisible(boolean)`.
`Dimension`
Component.`size()`
Deprecated.
As of JDK version 1.1, replaced by `getSize()`.
Constructors in java.awt with annotations of type Deprecated
Modifier
Constructor
Description
``
`AWTEvent(Event event)`
Deprecated.
It is recommended that `AWTEvent(Object, int)` be used instead

## Uses of Deprecated in java.awt.datatransfer

Fields in java.awt.datatransfer with annotations of type Deprecated
Modifier and Type
Field
Description
`static final DataFlavor`
DataFlavor.`plainTextFlavor`
Deprecated.
as of 1.3.
Methods in java.awt.datatransfer with annotations of type Deprecated
Modifier and Type
Method
Description
`boolean`
DataFlavor.`equals(String s)`
Deprecated.
As inconsistent with `hashCode()` contract, use `DataFlavor.isMimeTypeEqual(String)` instead.
`protected String`
DataFlavor.`normalizeMimeType(String mimeType)`
Deprecated.
This method is never invoked by this implementation from 1.1 onwards
`protected 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

Fields in java.awt.event with annotations of type Deprecated
Modifier and Type
Field
Description
`static final int`
InputEvent.`ALT_GRAPH_MASK`
Deprecated.
It is recommended that ALT_GRAPH_DOWN_MASK and `InputEvent.getModifiersEx()` be used instead
`static final int`
InputEvent.`ALT_MASK`
Deprecated.
It is recommended that ALT_DOWN_MASK and `InputEvent.getModifiersEx()` be used instead
`static final int`
InputEvent.`BUTTON1_MASK`
Deprecated.
It is recommended that BUTTON1_DOWN_MASK and `InputEvent.getModifiersEx()` be used instead
`static final int`
InputEvent.`BUTTON2_MASK`
Deprecated.
It is recommended that BUTTON2_DOWN_MASK and `InputEvent.getModifiersEx()` be used instead.
`static final int`
InputEvent.`BUTTON3_MASK`
Deprecated.
It is recommended that BUTTON3_DOWN_MASK and `InputEvent.getModifiersEx()` be used instead.
`static final int`
InputEvent.`CTRL_MASK`
Deprecated.
It is recommended that CTRL_DOWN_MASK and `InputEvent.getModifiersEx()` be used instead
`static final int`
InputEvent.`META_MASK`
Deprecated.
It is recommended that META_DOWN_MASK and `InputEvent.getModifiersEx()` be used instead
`static final int`
InputEvent.`SHIFT_MASK`
Deprecated.
It is recommended that SHIFT_DOWN_MASK and `InputEvent.getModifiersEx()` be used instead
Methods in java.awt.event with annotations of type Deprecated
Modifier and Type
Method
Description
`static String`
KeyEvent.`getKeyModifiersText(int modifiers)`
Deprecated.
It is recommended that extended modifier keys and `InputEvent.getModifiersExText(int)` be used instead
`int`
InputEvent.`getModifiers()`
Deprecated.
It is recommended that extended modifier keys and `InputEvent.getModifiersEx()` be used instead
`void`
KeyEvent.`setModifiers(int modifiers)`
Deprecated.
as of JDK1.1.4
Constructors in java.awt.event with annotations of type Deprecated
Modifier
Constructor
Description
``
`KeyEvent(Component source, int id, long when, int modifiers, int keyCode)`
Deprecated.
as of JDK1.1; use `KeyEvent(Component, int, long, int, int, char)` instead

## Uses of Deprecated in java.awt.image.renderable

Methods in java.awt.image.renderable with annotations of type Deprecated
Modifier and Type
Method
Description
`void`
RenderContext.`concetenateTransform(AffineTransform modTransform)`
Deprecated.
replaced by `concatenateTransform(AffineTransform)`.
`void`
RenderContext.`preConcetenateTransform(AffineTransform modTransform)`
Deprecated.
replaced by `preConcatenateTransform(AffineTransform)`.

## Uses of Deprecated in java.beans

Methods in java.beans with annotations of type Deprecated
Modifier and Type
Method
Description
`static 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 removed

## Uses of Deprecated in java.beans.beancontext

Classes in java.beans.beancontext with annotations of type Deprecated
Modifier and Type
Interface
Description
`interface`
`BeanContext`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextChild`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextChildComponentProxy`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BeanContextChildSupport`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextContainerProxy`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BeanContextEvent`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BeanContextMembershipEvent`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextMembershipListener`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextProxy`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BeanContextServiceAvailableEvent`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextServiceProvider`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextServiceProviderBeanInfo`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BeanContextServiceRevokedEvent`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextServiceRevokedListener`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextServices`
Deprecated, for removal: This API element is subject to removal in a future version.
`interface`
`BeanContextServicesListener`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BeanContextServicesSupport`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BeanContextSupport`
Deprecated, for removal: This API element is subject to removal in a future version.

## Uses of Deprecated in java.io

Classes in java.io with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`FilePermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`class`
`LineNumberInputStream`
Deprecated.
This class incorrectly assumes that bytes adequately represent characters.
`final class`
`SerializablePermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`class`
`StringBufferInputStream`
Deprecated.
This class does not properly convert characters into bytes.
Fields in java.io with annotations of type Deprecated
Modifier and Type
Field
Description
`Exception`
WriteAbortedException.`detail`
Deprecated.
This field predates the general-purpose exception chaining facility.
Methods in java.io with annotations of type Deprecated
Modifier and Type
Method
Description
`final String`
DataInputStream.`readLine()`
Deprecated.
This method does not properly convert bytes to characters.
`String`
ObjectInputStream.`readLine()`
Deprecated.
This method does not properly convert bytes to characters.
`String`
ByteArrayOutputStream.`toString(int hibyte)`
Deprecated.
This method does not properly convert bytes into characters.
`URL`
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 this `PutField` object in a proper format, and may result in corruption of the serialization stream.
Constructors in java.io with annotations of type Deprecated
Modifier
Constructor
Description
``
`StreamTokenizer(InputStream is)`
Deprecated.
As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example:

        Reader r = new BufferedReader(new InputStreamReader(is));
        StreamTokenizer st = new StreamTokenizer(r);

## Uses of Deprecated in java.lang

Classes in java.lang with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`RuntimePermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`class`
`SecurityManager`
Deprecated, for removal: This API element is subject to removal in a future version.
There is no replacement for this class.
`class`
`ThreadDeath`
Deprecated, for removal: This API element is subject to removal in a future version.
`Thread` originally specified a "`stop`" method to stop a victim thread by causing the victim thread to throw a `ThreadDeath`.
Fields in java.lang with annotations of type Deprecated
Modifier and Type
Field
Description
`static final Character.UnicodeBlock`
Character.UnicodeBlock.`SURROGATES_AREA`
Deprecated.
Instead of `SURROGATES_AREA`, use `Character.UnicodeBlock.HIGH_SURROGATES`, `Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES`, and `Character.UnicodeBlock.LOW_SURROGATES`.
Methods in java.lang with annotations of type Deprecated
Modifier and Type
Method
Description
`final void`
Thread.`checkAccess()`
Deprecated, for removal: This API element is subject to removal in a future version.
This method originally determined if the currently running thread had permission to modify this thread.
`final void`
ThreadGroup.`checkAccess()`
Deprecated, for removal: This API element is subject to removal in a future version.
This method originally determined if the currently running thread had permission to modify this thread group.
`protected final Class<?>`
ClassLoader.`defineClass(byte[] b, int off, int len)`
Deprecated.
Replaced by `defineClass(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.
`Process`
Runtime.`exec(String command)`
Deprecated.
This method is error-prone and should not be used, the corresponding method `Runtime.exec(String[])` or `ProcessBuilder` should be used instead.
`Process`
Runtime.`exec(String command, String[] envp)`
Deprecated.
This method is error-prone and should not be used, the corresponding method `Runtime.exec(String[], String[])` or `ProcessBuilder` should be used instead.
`Process`
Runtime.`exec(String command, String[] envp, File dir)`
Deprecated.
This method is error-prone and should not be used, the corresponding method `Runtime.exec(String[], String[], File)` or `ProcessBuilder` 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 of `getPackage` to return a `Package` from a parent loader, then the properties exposed by the `Package` 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 of `getPackage` to return a `Package` from a parent loader, then the properties exposed by the `Package` 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 originally returned the system-wide Security Manager.
`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.
`T`
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 originally set the system-wide Security Manager.
Constructors in java.lang with annotations of type Deprecated
Modifier
Constructor
Description
``
`Boolean(boolean value)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Boolean(String s)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Byte(byte value)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Byte(String s)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Character(char value)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Double(double value)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Double(String s)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Float(double value)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Float(float value)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Float(String s)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Integer(int value)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Integer(String s)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Long(long value)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Long(String s)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Short(short value)`
Deprecated.
It is rarely appropriate to use this constructor.
``
`Short(String s)`
Deprecated.
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.classfile

Methods in java.lang.classfile with annotations of type Deprecated
Modifier and Type
Method
Description
`static Signature.ClassTypeSig`
Signature.ClassTypeSig.`of(Signature.ClassTypeSig outerType, ClassDesc className, Signature.TypeArg... typeArgs)`
Deprecated, for removal: This API element is subject to removal in a future version.
The resulting signature does not denote the class represented by `className` when `outerType` is not null.

## Uses of Deprecated in java.lang.invoke

Methods in java.lang.invoke with annotations of type Deprecated
Modifier and Type
Method
Description
`boolean`
MethodHandles.Lookup.`hasPrivateAccess()`
Deprecated.
This method was originally designed to test `PRIVATE` access that implies full privilege access but `MODULE` access has since become independent of `PRIVATE` access.

## Uses of Deprecated in java.lang.management

Classes in java.lang.management with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`ManagementPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
Methods in java.lang.management with annotations of type Deprecated
Modifier and Type
Method
Description
`int`
MemoryMXBean.`getObjectPendingFinalizationCount()`
Deprecated.
Finalization has been deprecated for removal.

## Uses of Deprecated in java.lang.ref

Methods in java.lang.ref with annotations of type Deprecated
Modifier and Type
Method
Description
`boolean`
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

Classes in java.lang.reflect with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`ReflectPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
Methods in java.lang.reflect with annotations of type Deprecated
Modifier and Type
Method
Description
`static 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.
Constructors in java.lang.reflect with annotations of type Deprecated
Modifier
Constructor
Description
`protected`
`AccessibleObject()`
Deprecated.

## Uses of Deprecated in java.math

Fields in java.math with annotations of type Deprecated
Modifier and Type
Field
Description
`static final int`
BigDecimal.`ROUND_CEILING`
Deprecated.
Use `RoundingMode.CEILING` instead.
`static final int`
BigDecimal.`ROUND_DOWN`
Deprecated.
Use `RoundingMode.DOWN` instead.
`static final int`
BigDecimal.`ROUND_FLOOR`
Deprecated.
Use `RoundingMode.FLOOR` instead.
`static final int`
BigDecimal.`ROUND_HALF_DOWN`
Deprecated.
Use `RoundingMode.HALF_DOWN` instead.
`static final int`
BigDecimal.`ROUND_HALF_EVEN`
Deprecated.
Use `RoundingMode.HALF_EVEN` instead.
`static final int`
BigDecimal.`ROUND_HALF_UP`
Deprecated.
Use `RoundingMode.HALF_UP` instead.
`static final int`
BigDecimal.`ROUND_UNNECESSARY`
Deprecated.
Use `RoundingMode.UNNECESSARY` instead.
`static final int`
BigDecimal.`ROUND_UP`
Deprecated.
Use `RoundingMode.UP` instead.
Methods in java.math with annotations of type Deprecated
Modifier and Type
Method
Description
`BigDecimal`
BigDecimal.`divide(BigDecimal divisor, int roundingMode)`
Deprecated.
The method `BigDecimal.divide(BigDecimal, RoundingMode)` should be used in preference to this legacy method.
`BigDecimal`
BigDecimal.`divide(BigDecimal divisor, int scale, int roundingMode)`
Deprecated.
The method `BigDecimal.divide(BigDecimal, int, RoundingMode)` should be used in preference to this legacy method.
`BigDecimal`
BigDecimal.`setScale(int newScale, int roundingMode)`
Deprecated.
The method `BigDecimal.setScale(int, RoundingMode)` should be used in preference to this legacy method.

## Uses of Deprecated in java.net

Classes in java.net with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`NetPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`final class`
`SocketPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`final class`
`URLPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
Fields in java.net with annotations of type Deprecated
Modifier and Type
Field
Description
`static final int`
HttpURLConnection.`HTTP_SERVER_ERROR`
Deprecated.
it is misplaced and shouldn't have existed.
Methods in java.net with annotations of type Deprecated
Modifier and Type
Method
Description
`static String`
URLDecoder.`decode(String s)`
Deprecated.
The resulting string may vary depending on the default charset.
`static String`
URLEncoder.`encode(String s)`
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.
`InetAddress`
MulticastSocket.`getInterface()`
Deprecated.
The network interface may not be uniquely identified by the InetAddress returned.
`boolean`
MulticastSocket.`getLoopbackMode()`
Deprecated.
Use `DatagramSocket.getOption(SocketOption)` with `StandardSocketOptions.IP_MULTICAST_LOOP` instead.
`Permission`
HttpURLConnection.`getPermission()`
Deprecated, for removal: This API element is subject to removal in a future version.
Permissions can no longer be used for controlling access to resources as the Security Manager is no longer supported.
`Permission`
URLConnection.`getPermission()`
Deprecated, for removal: This API element is subject to removal in a future version.
Permissions can no longer be used for controlling access to resources as the Security Manager is no longer supported.
`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.
`static void`
DatagramSocket.`setDatagramSocketImplFactory(DatagramSocketImplFactory fac)`
Deprecated.
Use `DatagramChannel`, or subclass `DatagramSocket` 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.
Use `DatagramSocket.setOption(SocketOption, Object)` with `StandardSocketOptions.IP_MULTICAST_LOOP` instead.
`static void`
ServerSocket.`setSocketFactory(SocketImplFactory fac)`
Deprecated.
Use a `ServerSocketFactory` and subclass `ServerSocket` directly.
`static void`
Socket.`setSocketImplFactory(SocketImplFactory fac)`
Deprecated.
Use a `SocketFactory` and subclass `Socket` directly.
`protected void`
URLStreamHandler.`setURL(URL u, String protocol, String host, int port, String file, String ref)`
Deprecated.
Use setURL(URL, String, String, int, String, String, String, String);
Constructors in java.net with annotations of type Deprecated
Modifier
Constructor
Description
``
`Socket(String host, int port, boolean stream)`
Deprecated, for removal: This API element is subject to removal in a future version.
The `stream` parameter provided a way in early JDK releases to create a `Socket` that used a datagram socket.
``
`Socket(InetAddress host, int port, boolean stream)`
Deprecated, for removal: This API element is subject to removal in a future version.
The `stream` parameter provided a way in early JDK releases to create a `Socket` that used a datagram socket.
``
`URL(String spec)`
Deprecated.
Use `URI.toURL()` to construct an instance of URL.
``
`URL(String protocol, String host, int port, String file)`
Deprecated.
Use `URI.toURL()` to construct an instance of URL.
``
`URL(String protocol, String host, int port, String file, URLStreamHandler handler)`
Deprecated.
Use `URL.of(URI, URLStreamHandler)` to construct an instance of URL associated with a custom protocol handler.
``
`URL(String protocol, String host, String file)`
Deprecated.
Use `URI.toURL()` to construct an instance of URL.
``
`URL(URL context, String spec)`
Deprecated.
Use `URI.toURL()` to construct an instance of URL.
``
`URL(URL context, String spec, URLStreamHandler handler)`
Deprecated.
Use `URL.of(URI, URLStreamHandler)` to construct an instance of URL associated with a custom protocol handler.

## Uses of Deprecated in java.nio.file

Classes in java.nio.file with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`LinkPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

## Uses of Deprecated in java.rmi

Classes in java.rmi with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`RMISecurityException`
Deprecated.
Use `SecurityException` instead.
`class`
`RMISecurityManager`
Deprecated, for removal: This API element is subject to removal in a future version.
There is no replacement for the Security Manager.
`class`
`ServerRuntimeException`
Deprecated.
no replacement
Constructors in java.rmi with annotations of type Deprecated
Modifier
Constructor
Description
``
`RMISecurityException(String name)`
Deprecated.
no replacement
``
`RMISecurityException(String name, String arg)`
Deprecated.
no replacement
``
`ServerRuntimeException(String s, Exception ex)`
Deprecated.
no replacement

## Uses of Deprecated in java.rmi.dgc

Methods in java.rmi.dgc with annotations of type Deprecated
Modifier and Type
Method
Description
`static boolean`
VMID.`isUnique()`
Deprecated.

## Uses of Deprecated in java.rmi.registry

Classes in java.rmi.registry with annotations of type Deprecated
Modifier and Type
Interface
Description
`interface`
`RegistryHandler`
Deprecated.
no replacement
Methods in java.rmi.registry with annotations of type Deprecated
Modifier and Type
Method
Description
`Registry`
RegistryHandler.`registryImpl(int port)`
Deprecated.
no replacement.
`Registry`
RegistryHandler.`registryStub(String host, int port)`
Deprecated.
no replacement.

## Uses of Deprecated in java.rmi.server

Classes in java.rmi.server with annotations of type Deprecated
Modifier and Type
Interface
Description
`interface`
`LoaderHandler`
Deprecated.
no replacement
`class`
`LogStream`
Deprecated.
no replacement
`class`
`Operation`
Deprecated.
no replacement
`interface`
`RemoteCall`
Deprecated.
no replacement.
`class`
`RemoteStub`
Deprecated.
Statically generated stubs are deprecated, since stubs are generated dynamically.
`interface`
`ServerRef`
Deprecated.
No replacement.
`interface`
`Skeleton`
Deprecated.
no replacement.
`class`
`SkeletonMismatchException`
Deprecated.
no replacement.
`class`
`SkeletonNotFoundException`
Deprecated.
no replacement.
`class`
`SocketSecurityException`
Deprecated.
This class is obsolete.
Fields in java.rmi.server with annotations of type Deprecated
Modifier and Type
Field
Description
`static final long`
RemoteRef.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
ServerRef.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
Methods in java.rmi.server with annotations of type Deprecated
Modifier and Type
Method
Description
`void`
Skeleton.`dispatch(Remote obj, RemoteCall theCall, int opnum, long hash)`
Deprecated.
no replacement
`void`
RemoteCall.`done()`
Deprecated.
no replacement
`void`
RemoteRef.`done(RemoteCall call)`
Deprecated.
1.2 style stubs no longer use this method.
`void`
RemoteCall.`executeCall()`
Deprecated.
no replacement
`static RemoteStub`
UnicastRemoteObject.`exportObject(Remote obj)`
Deprecated.
This method is deprecated because it supports only static stubs.
`static PrintStream`
LogStream.`getDefaultStream()`
Deprecated.
no replacement
`ObjectInput`
RemoteCall.`getInputStream()`
Deprecated.
no replacement
`String`
Operation.`getOperation()`
Deprecated.
no replacement
`Operation[]`
Skeleton.`getOperations()`
Deprecated.
no replacement
`OutputStream`
LogStream.`getOutputStream()`
Deprecated.
no replacement
`ObjectOutput`
RemoteCall.`getOutputStream()`
Deprecated.
no replacement
`ObjectOutput`
RemoteCall.`getResultStream(boolean success)`
Deprecated.
no replacement
`Object`
LoaderHandler.`getSecurityContext(ClassLoader loader)`
Deprecated.
no replacement
`static Object`
RMIClassLoader.`getSecurityContext(ClassLoader loader)`
Deprecated.
no replacement.
`void`
RemoteRef.`invoke(RemoteCall call)`
Deprecated.
1.2 style stubs no longer use this method.
`Class<?>`
LoaderHandler.`loadClass(String name)`
Deprecated.
no replacement
`Class<?>`
LoaderHandler.`loadClass(URL codebase, String name)`
Deprecated.
no replacement
`static Class<?>`
RMIClassLoader.`loadClass(String name)`
Deprecated.
replaced by `loadClass(String,String)` method
`static LogStream`
LogStream.`log(String name)`
Deprecated.
no replacement
`RemoteCall`
RemoteRef.`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 replacement
`void`
RemoteCall.`releaseInputStream()`
Deprecated.
no replacement
`void`
RemoteCall.`releaseOutputStream()`
Deprecated.
no replacement
`static void`
LogStream.`setDefaultStream(PrintStream newDefault)`
Deprecated.
no replacement
`void`
LogStream.`setOutputStream(OutputStream out)`
Deprecated.
no replacement
`protected static void`
RemoteStub.`setRef(RemoteStub stub, RemoteRef ref)`
Deprecated.
No replacement.
`String`
LogStream.`toString()`
Deprecated.
no replacement
`String`
Operation.`toString()`
Deprecated.
no replacement
`void`
LogStream.`write(byte[] b, int off, int len)`
Deprecated.
no replacement
`void`
LogStream.`write(int b)`
Deprecated.
no replacement
Constructors in java.rmi.server with annotations of type Deprecated
Modifier
Constructor
Description
``
`Operation(String op)`
Deprecated.
no replacement
``
`SkeletonMismatchException(String s)`
Deprecated.
no replacement

## Uses of Deprecated in java.security

Classes in java.security with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`AccessControlContext`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the the Security Manager, which is no longer supported.
`class`
`AccessControlException`
Deprecated, for removal: This API element is subject to removal in a future version.
This exception was only useful in conjunction with the Security Manager, which is no longer supported.
`final class`
`AccessController`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
`interface`
`Certificate`
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`
`DomainCombiner`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
`class`
`Identity`
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`
`IdentityScope`
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`
`Policy`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
`static interface`
`Policy.Parameters`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
`class`
`PolicySpi`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
`final class`
`SecurityPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`class`
`Signer`
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.
`final class`
`UnresolvedPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
Fields in java.security with annotations of type Deprecated
Modifier and Type
Field
Description
`static final long`
Key.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
PrivateKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
PublicKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
Methods in java.security with annotations of type Deprecated
Modifier and Type
Method
Description
`protected abstract Object`
SignatureSpi.`engineGetParameter(String param)`
Deprecated.
`protected abstract void`
SignatureSpi.`engineSetParameter(String param, Object value)`
Deprecated.
Replaced by `engineSetParameter`.
`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.
use `Provider.getVersionStr()` instead.
`final void`
Signature.`setParameter(String param, Object value)`
Deprecated.
Use `setParameter`.
Constructors in java.security with annotations of type Deprecated
Modifier
Constructor
Description
`protected`
`AuthProvider(String name, double version, String info)`
Deprecated.
use `AuthProvider(String, String, String)` instead.
`protected`
`Provider(String name, double version, String info)`
Deprecated.
use `Provider(String, String, String)` instead.

## Uses of Deprecated in java.security.cert

Methods in java.security.cert with annotations of type Deprecated
Modifier and Type
Method
Description
`void`
X509CRLSelector.`addIssuerName(String name)`
Deprecated.
Use `X509CRLSelector.addIssuer(X500Principal)` or `X509CRLSelector.addIssuerName(byte[])` instead.
`String`
X509CertSelector.`getIssuerAsString()`
Deprecated.
Use `X509CertSelector.getIssuer()` or `X509CertSelector.getIssuerAsBytes()` instead.
`abstract Principal`
X509Certificate.`getIssuerDN()`
Deprecated.
Use `X509Certificate.getIssuerX500Principal()` instead.
`abstract Principal`
X509CRL.`getIssuerDN()`
Deprecated.
Use `X509CRL.getIssuerX500Principal()` instead.
`String`
X509CertSelector.`getSubjectAsString()`
Deprecated.
Use `X509CertSelector.getSubject()` or `X509CertSelector.getSubjectAsBytes()` instead.
`abstract Principal`
X509Certificate.`getSubjectDN()`
Deprecated.
Use `X509Certificate.getSubjectX500Principal()` instead.
`void`
X509CertSelector.`setIssuer(String issuerDN)`
Deprecated.
Use `X509CertSelector.setIssuer(X500Principal)` or `X509CertSelector.setIssuer(byte[])` instead.
`void`
X509CertSelector.`setSubject(String subjectDN)`
Deprecated.
Use `X509CertSelector.setSubject(X500Principal)` or `X509CertSelector.setSubject(byte[])` instead.

## Uses of Deprecated in java.security.interfaces

Fields in java.security.interfaces with annotations of type Deprecated
Modifier and Type
Field
Description
`static final long`
DSAPrivateKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
DSAPublicKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
ECPrivateKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
ECPublicKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
RSAMultiPrimePrivateCrtKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
RSAPrivateCrtKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
RSAPrivateKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
RSAPublicKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.

## Uses of Deprecated in java.security.spec

Fields in java.security.spec with annotations of type Deprecated
Modifier and Type
Field
Description
`static final PSSParameterSpec`
PSSParameterSpec.`DEFAULT`
Deprecated.
This field uses the default values defined in the PKCS #1 standard.
Constructors in java.security.spec with annotations of type Deprecated
Modifier
Constructor
Description
``
`PSSParameterSpec(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

Methods in java.sql with annotations of type Deprecated
Modifier and Type
Method
Description
`BigDecimal`
CallableStatement.`getBigDecimal(int parameterIndex, int scale)`
Deprecated.
use `getBigDecimal(int parameterIndex)` or `getBigDecimal(String parameterName)`
`BigDecimal`
ResultSet.`getBigDecimal(int columnIndex, int scale)`
Deprecated.
Use `getBigDecimal(int columnIndex)` or `getBigDecimal(String columnLabel)`
`BigDecimal`
ResultSet.`getBigDecimal(String columnLabel, int scale)`
Deprecated.
Use `getBigDecimal(int columnIndex)` or `getBigDecimal(String columnLabel)`
`int`
Time.`getDate()`
Deprecated.
`int`
Time.`getDay()`
Deprecated.
`int`
Date.`getHours()`
Deprecated.
`static PrintStream`
DriverManager.`getLogStream()`
Deprecated.
Use `getLogWriter`
`int`
Date.`getMinutes()`
Deprecated.
`int`
Time.`getMonth()`
Deprecated.
`int`
Date.`getSeconds()`
Deprecated.
`InputStream`
ResultSet.`getUnicodeStream(int columnIndex)`
Deprecated.
use `getCharacterStream` in place of `getUnicodeStream`
`InputStream`
ResultSet.`getUnicodeStream(String columnLabel)`
Deprecated.
use `getCharacterStream` instead
`int`
Time.`getYear()`
Deprecated.
`void`
Time.`setDate(int i)`
Deprecated.
`void`
Date.`setHours(int i)`
Deprecated.
`static void`
DriverManager.`setLogStream(PrintStream out)`
Deprecated.
Use `setLogWriter`
`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.
Use `setCharacterStream`
`void`
Time.`setYear(int i)`
Deprecated.
Constructors in java.sql with annotations of type Deprecated
Modifier
Constructor
Description
``
`Date(int year, int month, int day)`
Deprecated.
instead use the constructor `Date(long date)`
``
`Time(int hour, int minute, int second)`
Deprecated.
Use the constructor that takes a milliseconds value in place of this constructor
``
`Timestamp(int year, int month, int date, int hour, int minute, int second, int nano)`
Deprecated.
instead use the constructor `Timestamp(long millis)`

## Uses of Deprecated in java.util

Classes in java.util with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`Observable`
Deprecated.
This class and the `Observer` interface have been deprecated.
`interface`
`Observer`
Deprecated.
This interface has been deprecated.
`final class`
`PropertyPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
Methods in java.util with annotations of type Deprecated
Modifier and Type
Method
Description
`int`
Date.`getDate()`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.get(Calendar.DAY_OF_MONTH)`.
`int`
Date.`getDay()`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.get(Calendar.DAY_OF_WEEK)`.
`int`
Date.`getHours()`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.get(Calendar.HOUR_OF_DAY)`.
`int`
Date.`getMinutes()`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.get(Calendar.MINUTE)`.
`int`
Date.`getMonth()`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.get(Calendar.MONTH)`.
`int`
Date.`getSeconds()`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.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 by `Calendar.get(Calendar.YEAR) - 1900`.
`static long`
Date.`parse(String s)`
Deprecated.
As of JDK version 1.1, replaced by `DateFormat.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 by `Calendar.set(Calendar.DAY_OF_MONTH, int date)`.
`void`
Date.`setHours(int hours)`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.set(Calendar.HOUR_OF_DAY, int hours)`.
`void`
Date.`setMinutes(int minutes)`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.set(Calendar.MINUTE, int minutes)`.
`void`
Date.`setMonth(int month)`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.set(Calendar.MONTH, int month)`.
`void`
Date.`setSeconds(int seconds)`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.set(Calendar.SECOND, int seconds)`.
`void`
Date.`setYear(int year)`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.set(Calendar.YEAR, year + 1900)`.
`String`
Date.`toGMTString()`
Deprecated.
As of JDK version 1.1, replaced by `DateFormat.format(Date date)`, using a GMT `TimeZone`.
`String`
Date.`toLocaleString()`
Deprecated.
As of JDK version 1.1, replaced by `DateFormat.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 by `Calendar.set(year + 1900, month, date, hrs, min, sec)` or `GregorianCalendar(year + 1900, month, date, hrs, min, sec)`, using a UTC `TimeZone`, followed by `Calendar.getTime().getTime()`.
Constructors in java.util with annotations of type Deprecated
Modifier
Constructor
Description
``
`Date(int year, int month, int date)`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.set(year + 1900, month, date)` or `GregorianCalendar(year + 1900, month, date)`.
``
`Date(int year, int month, int date, int hrs, int min)`
Deprecated.
As of JDK version 1.1, replaced by `Calendar.set(year + 1900, month, date, hrs, min)` or `GregorianCalendar(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 by `Calendar.set(year + 1900, month, date, hrs, min, sec)` or `GregorianCalendar(year + 1900, month, date, hrs, min, sec)`.
``
`Date(String s)`
Deprecated.
As of JDK version 1.1, replaced by `DateFormat.parse(String s)`.
``
`Locale(String language)`
Deprecated.
Locale constructors have been deprecated.
``
`Locale(String language, String country)`
Deprecated.
Locale constructors have been deprecated.
``
`Locale(String language, String country, String variant)`
Deprecated.
Locale constructors have been deprecated.

## Uses of Deprecated in java.util.concurrent

Methods in java.util.concurrent with annotations of type Deprecated
Modifier and Type
Method
Description
`protected 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 originally returned a `Callable` object that when called, executed the given `callable` under the current access control context.
`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 originally returned a `Callable` object that when called, executed the given `callable` under the current access control context, with the current context class loader as the context class loader.
`static ThreadFactory`
Executors.`privilegedThreadFactory()`
Deprecated, for removal: This API element is subject to removal in a future version.
This method originally returned a thread factory that created new threads that had the same access control context as the current thread.

## Uses of Deprecated in java.util.concurrent.atomic

Methods in java.util.concurrent.atomic with annotations of type Deprecated
Modifier and Type
Method
Description
`boolean`
AtomicBoolean.`weakCompareAndSet(boolean expectedValue, boolean newValue)`
Deprecated.
This method has plain memory effects but the method name implies volatile memory effects (see methods such as `AtomicBoolean.compareAndExchange(boolean, boolean)` and `AtomicBoolean.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 as `AtomicInteger.compareAndExchange(int, int)` and `AtomicInteger.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 as `AtomicIntegerArray.compareAndExchange(int, int, int)` and `AtomicIntegerArray.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 as `AtomicLong.compareAndExchange(long, long)` and `AtomicLong.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 as `AtomicLongArray.compareAndExchange(int, long, long)` and `AtomicLongArray.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 as `AtomicReference.compareAndExchange(V, V)` and `AtomicReference.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 as `AtomicReferenceArray.compareAndExchange(int, E, E)` and `AtomicReferenceArray.compareAndSet(int, E, E)`).

## Uses of Deprecated in java.util.jar

Fields in java.util.jar with annotations of type Deprecated
Modifier and Type
Field
Description
`static 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

Classes in java.util.logging with annotations of type Deprecated
Modifier and Type
Interface
Description
`interface`
`LoggingMXBean`
Deprecated.
`LoggingMXBean` is no longer a `platform MXBean` and is replaced with `PlatformLoggingMXBean`.
`final class`
`LoggingPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
Fields in java.util.logging with annotations of type Deprecated
Modifier and Type
Field
Description
`static final Logger`
Logger.`global`
Deprecated.
Initialization of this field is prone to deadlocks.
Methods in java.util.logging with annotations of type Deprecated
Modifier and Type
Method
Description
`void`
LogManager.`checkAccess()`
Deprecated, for removal: This API element is subject to removal in a future version.
This method originally checked that the current context was trusted to modify the logging configuration.
`static LoggingMXBean`
LogManager.`getLoggingMXBean()`
Deprecated.
`java.util.logging.LoggingMXBean` is deprecated and replaced with `java.lang.management.PlatformLoggingMXBean`.
`int`
LogRecord.`getThreadID()`
Deprecated.
Values returned by this method may be synthesized, and may not correspond to the actual thread id, use `LogRecord.getLongThreadID()` instead.
`void`
Logger.`logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)`
Deprecated.
Use `Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Object...)` instead.
`void`
Logger.`logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)`
Deprecated.
Use `Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Object...)` instead
`void`
Logger.`logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)`
Deprecated.
Use `Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Object...)` instead.
`void`
Logger.`logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)`
Deprecated.
Use `Logger.logrb(java.util.logging.Level, java.lang.String, java.lang.String, java.util.ResourceBundle, java.lang.String, java.lang.Throwable)` instead.
`void`
LogRecord.`setMillis(long millis)`
Deprecated.
LogRecord maintains timestamps with nanosecond resolution, using `Instant` values.
`void`
LogRecord.`setThreadID(int threadID)`
Deprecated.
This method doesn't allow to pass a long thread id, use `LogRecord.setLongThreadID(long)` instead.

## Uses of Deprecated in java.util.zip

Classes in java.util.zip with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`ZipError`
Deprecated, for removal: This API element is subject to removal in a future version.
ZipError is no longer used and is obsolete.
Methods in java.util.zip with annotations of type Deprecated
Modifier and Type
Method
Description
`int`
Deflater.`getTotalIn()`
Deprecated.
Use `Deflater.getBytesRead()` instead
`int`
Inflater.`getTotalIn()`
Deprecated.
Use `Inflater.getBytesRead()` instead
`int`
Deflater.`getTotalOut()`
Deprecated.
Use `Deflater.getBytesWritten()` instead
`int`
Inflater.`getTotalOut()`
Deprecated.
Use `Inflater.getBytesWritten()` instead

## Uses of Deprecated in javax.accessibility

Classes in javax.accessibility with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`AccessibleResourceBundle`
Deprecated.
This class is deprecated as of version 1.3 of the Java Platform

## Uses of Deprecated in javax.crypto

Fields in javax.crypto with annotations of type Deprecated
Modifier and Type
Field
Description
`static final long`
SecretKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.

## Uses of Deprecated in javax.crypto.interfaces

Fields in javax.crypto.interfaces with annotations of type Deprecated
Modifier and Type
Field
Description
`static final long`
DHPrivateKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
DHPublicKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.
`static final long`
PBEKey.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.

## Uses of Deprecated in javax.crypto.spec

Fields in javax.crypto.spec with annotations of type Deprecated
Modifier and Type
Field
Description
`static final OAEPParameterSpec`
OAEPParameterSpec.`DEFAULT`
Deprecated.
This field uses the default values defined in the PKCS #1 standard.

## Uses of Deprecated in javax.imageio.spi

Fields in javax.imageio.spi with annotations of type Deprecated
Modifier and Type
Field
Description
`static 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 }`.

## Uses of Deprecated in javax.lang.model.util

Constructors in javax.lang.model.util with annotations of type Deprecated
Modifier
Constructor
Description
`protected`
`AbstractAnnotationValueVisitor6()`
Deprecated.
Release 6 is obsolete; update to a visitor for a newer release level.
`protected`
`AbstractAnnotationValueVisitor7()`
Deprecated.
Release 7 is obsolete; update to a visitor for a newer release level.
`protected`
`AbstractElementVisitor6()`
Deprecated.
Release 6 is obsolete; update to a visitor for a newer release level.
`protected`
`AbstractElementVisitor7()`
Deprecated.
Release 7 is obsolete; update to a visitor for a newer release level.
`protected`
`AbstractTypeVisitor6()`
Deprecated.
Release 6 is obsolete; update to a visitor for a newer release level.
`protected`
`AbstractTypeVisitor7()`
Deprecated.
Release 7 is obsolete; update to a visitor for a newer release level.
`protected`
`ElementKindVisitor6()`
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`
`ElementKindVisitor7()`
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`
`ElementScanner6()`
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`
`ElementScanner7()`
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`
`SimpleAnnotationValueVisitor6()`
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`
`SimpleAnnotationValueVisitor7()`
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`
`SimpleElementVisitor6()`
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`
`SimpleElementVisitor7()`
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`
`SimpleTypeVisitor6()`
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`
`SimpleTypeVisitor7()`
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`
`TypeKindVisitor6()`
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`
`TypeKindVisitor7()`
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

Classes in javax.management with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`DefaultLoaderRepository`
Deprecated.
Use `MBeanServer.getClassLoaderRepository()` instead.
`class`
`MBeanPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
`class`
`MBeanServerPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
`class`
`MBeanTrustPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
Methods in javax.management with annotations of type Deprecated
Modifier and Type
Method
Description
`default ObjectInputStream`
MBeanServer.`deserialize(String className, byte[] data)`
Deprecated.
Use `MBeanServer.getClassLoaderRepository()` to obtain the class loader repository and use it to deserialize.
`default ObjectInputStream`
MBeanServer.`deserialize(String className, ObjectName loaderName, byte[] data)`
Deprecated.
Use `getClassLoader` to obtain the class loader for deserialization.
`default ObjectInputStream`
MBeanServer.`deserialize(ObjectName name, byte[] data)`
Deprecated.
Use `getClassLoaderFor` 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 a `ValueExp` can access the MBean server in which it is being evaluated by using `QueryEval.getMBeanServer()`.
Constructors in javax.management with annotations of type Deprecated
Modifier
Constructor
Description
``
`AttributeValueExp()`
Deprecated.
An instance created with this constructor cannot be used in a query.

## Uses of Deprecated in javax.management.loading

Classes in javax.management.loading with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`DefaultLoaderRepository`
Deprecated.
Use `MBeanServer.getClassLoaderRepository()` instead.

## Uses of Deprecated in javax.management.monitor

Fields in javax.management.monitor with annotations of type Deprecated
Modifier and Type
Field
Description
`protected int`
Monitor.`alreadyNotified`
Deprecated.
equivalent to `Monitor.alreadyNotifieds`[0].
`protected String`
Monitor.`dbgTag`
Deprecated.
No replacement.
Methods in javax.management.monitor with annotations of type Deprecated
Modifier and Type
Method
Description
`Number`
CounterMonitor.`getDerivedGauge()`
Deprecated.
As of JMX 1.2, replaced by `CounterMonitor.getDerivedGauge(ObjectName)`
`Number`
CounterMonitorMBean.`getDerivedGauge()`
Deprecated.
As of JMX 1.2, replaced by `CounterMonitorMBean.getDerivedGauge(ObjectName)`
`Number`
GaugeMonitor.`getDerivedGauge()`
Deprecated.
As of JMX 1.2, replaced by `GaugeMonitor.getDerivedGauge(ObjectName)`
`Number`
GaugeMonitorMBean.`getDerivedGauge()`
Deprecated.
As of JMX 1.2, replaced by `GaugeMonitorMBean.getDerivedGauge(ObjectName)`
`String`
StringMonitor.`getDerivedGauge()`
Deprecated.
As of JMX 1.2, replaced by `StringMonitor.getDerivedGauge(ObjectName)`
`String`
StringMonitorMBean.`getDerivedGauge()`
Deprecated.
As of JMX 1.2, replaced by `StringMonitorMBean.getDerivedGauge(ObjectName)`
`long`
CounterMonitor.`getDerivedGaugeTimeStamp()`
Deprecated.
As of JMX 1.2, replaced by `CounterMonitor.getDerivedGaugeTimeStamp(ObjectName)`
`long`
CounterMonitorMBean.`getDerivedGaugeTimeStamp()`
Deprecated.
As of JMX 1.2, replaced by `CounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)`
`long`
GaugeMonitor.`getDerivedGaugeTimeStamp()`
Deprecated.
As of JMX 1.2, replaced by `GaugeMonitor.getDerivedGaugeTimeStamp(ObjectName)`
`long`
GaugeMonitorMBean.`getDerivedGaugeTimeStamp()`
Deprecated.
As of JMX 1.2, replaced by `GaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)`
`long`
StringMonitor.`getDerivedGaugeTimeStamp()`
Deprecated.
As of JMX 1.2, replaced by `StringMonitor.getDerivedGaugeTimeStamp(ObjectName)`
`long`
StringMonitorMBean.`getDerivedGaugeTimeStamp()`
Deprecated.
As of JMX 1.2, replaced by `StringMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)`
`ObjectName`
Monitor.`getObservedObject()`
Deprecated.
As of JMX 1.2, replaced by `Monitor.getObservedObjects()`
`ObjectName`
MonitorMBean.`getObservedObject()`
Deprecated.
As of JMX 1.2, replaced by `MonitorMBean.getObservedObjects()`
`Number`
CounterMonitor.`getThreshold()`
Deprecated.
As of JMX 1.2, replaced by `CounterMonitor.getThreshold(ObjectName)`
`Number`
CounterMonitorMBean.`getThreshold()`
Deprecated.
As of JMX 1.2, replaced by `CounterMonitorMBean.getThreshold(ObjectName)`
`void`
Monitor.`setObservedObject(ObjectName object)`
Deprecated.
As of JMX 1.2, replaced by `Monitor.addObservedObject(ObjectName)`
`void`
MonitorMBean.`setObservedObject(ObjectName object)`
Deprecated.
As of JMX 1.2, replaced by `MonitorMBean.addObservedObject(ObjectName)`
`void`
CounterMonitor.`setThreshold(Number value)`
Deprecated.
As of JMX 1.2, replaced by `CounterMonitor.setInitThreshold(Number)`
`void`
CounterMonitorMBean.`setThreshold(Number value)`
Deprecated.
As of JMX 1.2, replaced by `CounterMonitorMBean.setInitThreshold(Number)`

## Uses of Deprecated in javax.management.openmbean

Fields in javax.management.openmbean with annotations of type Deprecated
Modifier and Type
Field
Description
`static final String[]`
OpenType.`ALLOWED_CLASSNAMES`
Deprecated.
Use `ALLOWED_CLASSNAMES_LIST` instead.

## Uses of Deprecated in javax.management.relation

Constructors in javax.management.relation with annotations of type Deprecated
Modifier
Constructor
Description
``
`RoleStatus()`
Deprecated, for removal: This API element is subject to removal in a future version.

## Uses of Deprecated in javax.management.remote

Classes in javax.management.remote with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`SubjectDelegationPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
Methods in javax.management.remote with annotations of type Deprecated
Modifier and Type
Method
Description
`default 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

Fields in javax.naming with annotations of type Deprecated
Modifier and Type
Field
Description
`static final long`
Name.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.

## Uses of Deprecated in javax.naming.directory

Fields in javax.naming.directory with annotations of type Deprecated
Modifier and Type
Field
Description
`static final long`
Attribute.`serialVersionUID`
Deprecated.
A `serialVersionUID` field in an interface is ineffectual.

## Uses of Deprecated in javax.net.ssl

Classes in javax.net.ssl with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`SSLPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
Methods in javax.net.ssl with annotations of type Deprecated
Modifier and Type
Method
Description
`X509Certificate[]`
HandshakeCompletedEvent.`getPeerCertificateChain()`
Deprecated, for removal: This API element is subject to removal in a future version.
The `HandshakeCompletedEvent.getPeerCertificates()` method that returns an array of `java.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.
The `SSLSession.getPeerCertificates()` method that returns an array of `java.security.cert.Certificate` should be used instead.

## Uses of Deprecated in javax.security.auth

Classes in javax.security.auth with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`AuthPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`final class`
`PrivateCredentialPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`class`
`SubjectDomainCombiner`
Deprecated, for removal: This API element is subject to removal in a future version.
This class was only useful in conjunction with the Security Manager, which is no longer supported.
Methods in javax.security.auth with annotations of type Deprecated
Modifier and Type
Method
Description
`static <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 originally performed the specified `PrivilegedAction` with privileges enabled.
`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 originally performed the specified `PrivilegedExceptionAction` with privileges enabled.
`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 originally performed the specified `PrivilegedAction` with privileges enabled and restricted by the specified `AccessControlContext`.
`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 originally performed the specified `PrivilegedExceptionAction` with privileges enabled and restricted by the specified `AccessControlContext`.
`static Subject`
Subject.`getSubject(AccessControlContext acc)`
Deprecated, for removal: This API element is subject to removal in a future version.
This method used to get the subject associated with the provided `AccessControlContext`, which was only useful in conjunction with the Security Manager, which is no longer supported.

## Uses of Deprecated in javax.security.auth.kerberos

Classes in javax.security.auth.kerberos with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`DelegationPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`final class`
`ServicePermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

## Uses of Deprecated in javax.security.cert

Classes in javax.security.cert with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`Certificate`
Deprecated, for removal: This API element is subject to removal in a future version.
Use the classes in `java.security.cert` instead.
`class`
`CertificateEncodingException`
Deprecated, for removal: This API element is subject to removal in a future version.
Use the classes in `java.security.cert` instead.
`class`
`CertificateException`
Deprecated, for removal: This API element is subject to removal in a future version.
Use the classes in `java.security.cert` instead.
`class`
`CertificateExpiredException`
Deprecated, for removal: This API element is subject to removal in a future version.
Use the classes in `java.security.cert` instead.
`class`
`CertificateNotYetValidException`
Deprecated, for removal: This API element is subject to removal in a future version.
Use the classes in `java.security.cert` instead.
`class`
`CertificateParsingException`
Deprecated, for removal: This API element is subject to removal in a future version.
Use the classes in `java.security.cert` instead.
`class`
`X509Certificate`
Deprecated, for removal: This API element is subject to removal in a future version.
Use the classes in `java.security.cert` instead.

## Uses of Deprecated in javax.sound.sampled

Classes in javax.sound.sampled with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`AudioPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
There is no replacement for this class.

## Uses of Deprecated in javax.sql.rowset

Fields in javax.sql.rowset with annotations of type Deprecated
Modifier and Type
Field
Description
`static final boolean`
CachedRowSet.`COMMIT_ON_ACCEPT_CHANGES`
Deprecated.
Because this field is final (it is part of an interface), its value cannot be changed.
Methods in javax.sql.rowset with annotations of type Deprecated
Modifier and Type
Method
Description
`void`
BaseRowSet.`setUnicodeStream(int parameterIndex, InputStream x, int length)`
Deprecated.
getCharacterStream should be used in its place

## Uses of Deprecated in javax.swing

Classes in javax.swing with annotations of type Deprecated
Modifier and Type
Class
Description
`protected class`
`JComponent.AccessibleJComponent.AccessibleFocusHandler`
Deprecated.
This class is no longer used or needed.
Fields in javax.swing with annotations of type Deprecated
Modifier and Type
Field
Description
`protected FocusListener`
JComponent.AccessibleJComponent.`accessibleFocusHandler`
Deprecated.
`protected boolean`
JViewport.`backingStore`
Deprecated.
As of Java 2 platform v1.3
`protected static final Component`
ImageIcon.`component`
Deprecated.
since 1.8
`protected static final MediaTracker`
ImageIcon.`tracker`
Deprecated.
since 1.8
Methods in javax.swing with annotations of type Deprecated
Modifier and Type
Method
Description
`static JScrollPane`
JTable.`createScrollPaneForTable(JTable aTable)`
Deprecated.
As of Swing version 1.0.2, replaced by `new JScrollPane(aTable)`.
`void`
JComponent.`disable()`
Deprecated.
As of JDK version 1.1, replaced by `java.awt.Component.setEnabled(boolean)`.
`static void`
FocusManager.`disableSwingFocusManager()`
Deprecated.
as of 1.4, replaced by `KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy)`
`void`
JComponent.`enable()`
Deprecated.
As of JDK version 1.1, replaced by `java.awt.Component.setEnabled(boolean)`.
`static Component`
SwingUtilities.`findFocusOwner(Component c)`
Deprecated.
As of 1.4, replaced by `KeyboardFocusManager.getFocusOwner()`.
`Component`
JMenuBar.`getComponentAtIndex(int i)`
Deprecated.
replaced by `getComponent(int i)`
`Component`
JPopupMenu.`getComponentAtIndex(int i)`
Deprecated.
replaced by `Container.getComponent(int)`
`static KeyStroke`
KeyStroke.`getKeyStroke(char keyChar, boolean onKeyRelease)`
Deprecated.
use getKeyStroke(char)
`String`
AbstractButton.`getLabel()`
Deprecated.
- Replaced by `getText`
`JMenuBar`
JInternalFrame.`getMenuBar()`
Deprecated.
As of Swing version 1.0.3, replaced by `getJMenuBar()`.
`JMenuBar`
JRootPane.`getMenuBar()`
Deprecated.
As of Swing version 1.0.3 replaced by `getJMenuBar()`.
`Component`
JComponent.`getNextFocusableComponent()`
Deprecated.
As of 1.4, replaced by `FocusTraversalPolicy`.
`Object[]`
JList.`getSelectedValues()`
Deprecated.
As of JDK 1.7, replaced by `JList.getSelectedValuesList()`
`String`
JPasswordField.`getText()`
Deprecated.
As of Java 2 platform v1.2, replaced by `getPassword`.
`String`
JPasswordField.`getText(int offs, int len)`
Deprecated.
As of Java 2 platform v1.2, replaced by `getPassword`.
`Rectangle`
ScrollPaneLayout.`getViewportBorderBounds(JScrollPane scrollpane)`
Deprecated.
As of JDK version Swing1.1 replaced by `JScrollPane.getViewportBorderBounds()`.
`final String`
JInternalFrame.`getWarningString()`
Deprecated, for removal: This API element is subject to removal in a future version.
since JDK 24
`void`
JComponent.`hide()`
Deprecated.
`boolean`
JViewport.`isBackingStoreEnabled()`
Deprecated.
As of Java 2 platform v1.3, replaced by `getScrollMode()`.
`static boolean`
FocusManager.`isFocusManagerEnabled()`
Deprecated.
As of 1.4, replaced by `KeyboardFocusManager.getDefaultFocusTraversalPolicy()`
`boolean`
JComponent.`isManagingFocus()`
Deprecated.
As of 1.4, replaced by `Component.setFocusTraversalKeys(int, Set)` and `Container.setFocusCycleRoot(boolean)`.
`boolean`
JComponent.`requestDefaultFocus()`
Deprecated.
As of 1.4, replaced by `FocusTraversalPolicy.getDefaultComponent(Container).requestFocus()`
`void`
JComponent.`reshape(int x, int y, int w, int h)`
Deprecated.
As of JDK 5, replaced by `Component.setBounds(int, int, int, int)`.
`void`
JViewport.`setBackingStoreEnabled(boolean enabled)`
Deprecated.
As of Java 2 platform v1.3, replaced by `setScrollMode()`.
`void`
AbstractButton.`setLabel(String label)`
Deprecated.
- Replaced by `setText(text)`
`void`
JInternalFrame.`setMenuBar(JMenuBar m)`
Deprecated.
As of Swing version 1.0.3 replaced by `setJMenuBar(JMenuBar m)`.
`void`
JRootPane.`setMenuBar(JMenuBar menu)`
Deprecated.
As of Swing version 1.0.3 replaced by `setJMenuBar(JMenuBar menu)`.
`void`
JComponent.`setNextFocusableComponent(Component aComponent)`
Deprecated.
As of 1.4, replaced by `FocusTraversalPolicy`
`boolean`
InputVerifier.`shouldYieldFocus(JComponent input)`
Deprecated.
use `InputVerifier.shouldYieldFocus(JComponent, JComponent)` instead.
`void`
JTable.`sizeColumnsToFit(boolean lastColumnOnly)`
Deprecated.
As of Swing version 1.0.3, replaced by `doLayout()`.

## Uses of Deprecated in javax.swing.plaf

Methods in javax.swing.plaf with annotations of type Deprecated
Modifier and Type
Method
Description
`String`
TextUI.`getToolTipText(JTextComponent t, Point pt)`
Deprecated.
replaced by `TextUI.getToolTipText2D(JTextComponent, Point2D)`
`abstract Rectangle`
TextUI.`modelToView(JTextComponent t, int pos)`
Deprecated.
replaced by `TextUI.modelToView2D(JTextComponent, int, Position.Bias)`
`abstract Rectangle`
TextUI.`modelToView(JTextComponent t, int pos, Position.Bias bias)`
Deprecated.
replaced by `TextUI.modelToView2D(JTextComponent, int, Position.Bias)`
`abstract int`
TextUI.`viewToModel(JTextComponent t, Point pt)`
Deprecated.
replaced by `TextUI.viewToModel2D(JTextComponent, Point2D, Position.Bias[])`
`abstract int`
TextUI.`viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)`
Deprecated.
replaced by `TextUI.viewToModel2D(JTextComponent, Point2D, Position.Bias[])`

## Uses of Deprecated in javax.swing.plaf.basic

Classes in javax.swing.plaf.basic with annotations of type Deprecated
Modifier and Type
Class
Description
`protected class`
`BasicMenuItemUI.MouseInputHandler`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BasicScrollPaneUI.HSBChangeListener`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BasicScrollPaneUI.PropertyChangeHandler`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BasicScrollPaneUI.ViewportChangeHandler`
Deprecated, for removal: This API element is subject to removal in a future version.
`class`
`BasicScrollPaneUI.VSBChangeListener`
Deprecated, for removal: This API element is subject to removal in a future version.
Fields in javax.swing.plaf.basic with annotations of type Deprecated
Modifier and Type
Field
Description
`protected 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.
Methods in javax.swing.plaf.basic with annotations of type Deprecated
Modifier and Type
Method
Description
`protected JFrame`
BasicToolBarUI.`createFloatingFrame(JToolBar toolbar)`
Deprecated, for removal: This API element is subject to removal in a future version.
It is recommended that `BasicToolBarUI.createFloatingWindow(JToolBar)` be used instead
`protected ActionListener`
BasicSplitPaneUI.`createKeyboardDownRightListener()`
Deprecated.
As of Java 2 platform v1.3.
`protected ActionListener`
BasicSplitPaneUI.`createKeyboardEndListener()`
Deprecated.
As of Java 2 platform v1.3.
`protected ActionListener`
BasicSplitPaneUI.`createKeyboardHomeListener()`
Deprecated.
As of Java 2 platform v1.3.
`protected ActionListener`
BasicSplitPaneUI.`createKeyboardResizeToggleListener()`
Deprecated.
As of Java 2 platform v1.3.
`protected ActionListener`
BasicSplitPaneUI.`createKeyboardUpLeftListener()`
Deprecated.
As of Java 2 platform v1.3.
`protected int`
BasicSplitPaneUI.`getDividerBorderSize()`
Deprecated.
As of Java 2 platform v1.3, instead set the border on the divider.
`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`
BasicDirectoryModel.`lt(File a, File b)`
Deprecated, for removal: This API element is subject to removal in a future version.
Obsolete method, not used anymore.
`Rectangle`
BasicTextUI.`modelToView(JTextComponent tc, int pos)`
Deprecated.
replaced by `TextUI.modelToView2D(JTextComponent, int, Position.Bias)`
`Rectangle`
BasicTextUI.`modelToView(JTextComponent tc, int pos, Position.Bias bias)`
Deprecated.
replaced by `TextUI.modelToView2D(JTextComponent, int, Position.Bias)`
`int`
BasicTextUI.`viewToModel(JTextComponent tc, Point pt)`
Deprecated.
replaced by `TextUI.viewToModel2D(JTextComponent, Point2D, Position.Bias[])`
`int`
BasicTextUI.`viewToModel(JTextComponent tc, Point pt, Position.Bias[] biasReturn)`
Deprecated.
replaced by `TextUI.viewToModel2D(JTextComponent, Point2D, Position.Bias[])`

## Uses of Deprecated in javax.swing.plaf.metal

Classes in javax.swing.plaf.metal with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`MetalComboBoxUI.MetalComboPopup`
Deprecated.
As of Java 2 platform v1.4.
`protected class`
`MetalFileChooserUI.FileRenderer`
Deprecated.
As of JDK version 9.
`protected class`
`MetalFileChooserUI.SingleClickListener`
Deprecated.
As of JDK version 9.
Methods in javax.swing.plaf.metal with annotations of type Deprecated
Modifier and Type
Method
Description
`protected void`
MetalComboBoxUI.`editablePropertyChanged(PropertyChangeEvent e)`
Deprecated.
As of Java 2 platform v1.4.
`protected void`
MetalComboBoxUI.`removeListeners()`
Deprecated.
As of Java 2 platform v1.4.
`void`
MetalScrollPaneUI.`uninstallListeners(JScrollPane scrollPane)`
Deprecated.
- Replaced by `BasicScrollPaneUI.uninstallListeners(JComponent)`

## Uses of Deprecated in javax.swing.plaf.multi

Methods in javax.swing.plaf.multi with annotations of type Deprecated
Modifier and Type
Method
Description
`Rectangle`
MultiTextUI.`modelToView(JTextComponent a, int b)`
Deprecated.
replaced by `TextUI.modelToView2D(JTextComponent, int, Position.Bias)`
`Rectangle`
MultiTextUI.`modelToView(JTextComponent a, int b, Position.Bias c)`
Deprecated.
replaced by `TextUI.modelToView2D(JTextComponent, int, Position.Bias)`
`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.table

Fields in javax.swing.table with annotations of type Deprecated
Modifier and Type
Field
Description
`protected int`
TableColumn.`resizedPostingDisableCount`
Deprecated.
as of Java 2 platform v1.3
Methods in javax.swing.table with annotations of type Deprecated
Modifier and Type
Method
Description
`void`
TableColumn.`disableResizedPosting()`
Deprecated.
as of Java 2 platform v1.3
`void`
TableColumn.`enableResizedPosting()`
Deprecated.
as of Java 2 platform v1.3

## Uses of Deprecated in javax.swing.text

Classes in javax.swing.text with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`DefaultTextUI`
Deprecated.
`class`
`TableView.TableCell`
Deprecated.
A table cell can now be any View implementation.
Methods in javax.swing.text with annotations of type Deprecated
Modifier and Type
Method
Description
`protected TableView.TableCell`
TableView.`createTableCell(Element elem)`
Deprecated.
Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.
`protected int`
PasswordView.`drawEchoCharacter(Graphics g, int x, int y, char c)`
Deprecated.
replaced by `PasswordView.drawEchoCharacter(Graphics2D, float, float, char)`
`protected void`
PlainView.`drawLine(int lineIndex, Graphics g, int x, int y)`
Deprecated.
replaced by `PlainView.drawLine(int, Graphics2D, float, float)`
`protected void`
WrappedPlainView.`drawLine(int p0, int p1, Graphics g, int x, int y)`
Deprecated.
replaced by `WrappedPlainView.drawLine(int, int, Graphics2D, float, float)`
`protected int`
PasswordView.`drawSelectedText(Graphics g, int x, int y, int p0, int p1)`
Deprecated.
replaced by `PlainView.drawSelectedText(Graphics2D, float, float, int, int)`
`protected int`
PlainView.`drawSelectedText(Graphics g, int x, int y, int p0, int p1)`
Deprecated.
replaced by `PlainView.drawSelectedText(Graphics2D, float, float, int, int)`
`protected int`
WrappedPlainView.`drawSelectedText(Graphics g, int x, int y, int p0, int p1)`
Deprecated.
replaced by `WrappedPlainView.drawSelectedText(Graphics2D, float, float, int, int)`
`static final int`
Utilities.`drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset)`
Deprecated.
replaced by `Utilities.drawTabbedText(Segment, float, float, Graphics2D, TabExpander, int)`
`protected int`
PasswordView.`drawUnselectedText(Graphics g, int x, int y, int p0, int p1)`
Deprecated.
replaced by `PlainView.drawUnselectedText(Graphics2D, float, float, int, int)`
`protected int`
PlainView.`drawUnselectedText(Graphics g, int x, int y, int p0, int p1)`
Deprecated.
replaced by `PlainView.drawUnselectedText(Graphics2D, float, float, int, int)`
`protected int`
WrappedPlainView.`drawUnselectedText(Graphics g, int x, int y, int p0, int p1)`
Deprecated.
replaced by `WrappedPlainView.drawUnselectedText(Graphics2D, float, float, int, int)`
`static final int`
Utilities.`getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)`
Deprecated.
replaced by `Utilities.getBreakLocation(Segment, FontMetrics, float, float, TabExpander, int)`
`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.
replaced by `Utilities.getPositionAbove(JTextComponent, int, float)`
`static final int`
Utilities.`getPositionBelow(JTextComponent c, int offs, int x)`
Deprecated.
replaced by `Utilities.getPositionBelow(JTextComponent, int, float)`
`static final int`
Utilities.`getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset)`
Deprecated.
replaced by `Utilities.getTabbedTextOffset(Segment, FontMetrics, float, float, TabExpander, int, boolean)`
`static final int`
Utilities.`getTabbedTextOffset(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset, boolean round)`
Deprecated.
replaced by `Utilities.getTabbedTextOffset(Segment, FontMetrics, float, float, TabExpander, int, boolean)`
`static final int`
Utilities.`getTabbedTextWidth(Segment s, FontMetrics metrics, int x, TabExpander e, int startOffset)`
Deprecated.
replaced by `Utilities.getTabbedTextWidth(Segment, FontMetrics, float, TabExpander, int)`
`Rectangle`
JTextComponent.`modelToView(int pos)`
Deprecated.
replaced by `JTextComponent.modelToView2D(int)`
`Shape`
View.`modelToView(int pos, Shape a)`
Deprecated.
`int`
JTextComponent.`viewToModel(Point pt)`
Deprecated.
replaced by `JTextComponent.viewToModel2D(Point2D)`
`int`
View.`viewToModel(float x, float y, Shape a)`
Deprecated.

## Uses of Deprecated in javax.swing.text.html

Fields in javax.swing.text.html with annotations of type Deprecated
Modifier and Type
Field
Description
`static final String`
FormView.`RESET`
Deprecated.
As of 1.3, value comes from UIManager UIManager property FormView.resetButtonText
`static final String`
FormView.`SUBMIT`
Deprecated.
As of 1.3, value now comes from UIManager property FormView.submitButtonText
Methods in javax.swing.text.html with annotations of type Deprecated
Modifier and Type
Method
Description
`protected void`
HTMLEditorKit.InsertHTMLTextAction.`insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)`
Deprecated.
As of Java 2 platform v1.3, use insertAtBoundary

## Uses of Deprecated in javax.swing.tree

Methods in javax.swing.tree with annotations of type Deprecated
Modifier and Type
Method
Description
`protected void`
DefaultTreeSelectionModel.`notifyPathChange(Vector<?> changedPaths, TreePath oldLeadSelection)`
Deprecated.
As of JDK version 1.7

## Uses of Deprecated in javax.tools

Methods in javax.tools with annotations of type Deprecated
Modifier and Type
Method
Description
`default Iterable<? extends JavaFileObject>`
StandardJavaFileManager.`getJavaFileObjectsFromPaths(Iterable<? extends Path> paths)`
Deprecated.
use `StandardJavaFileManager.getJavaFileObjectsFromPaths(Collection)` instead, to prevent the possibility of accidentally calling the method with a single `Path` 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

Methods in javax.xml.stream with annotations of type Deprecated
Modifier and Type
Method
Description
`static 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.jfr

Classes in jdk.jfr with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`FlightRecorderPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.

## Uses of Deprecated in jdk.net

Classes in jdk.net with annotations of type Deprecated
Modifier and Type
Class
Description
`final class`
`NetworkPermission`
Deprecated, for removal: This API element is subject to removal in a future version.
This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.
`class`
`Sockets`
Deprecated.
Java SE 9 added standard methods to set/get socket options, and retrieve the per-Socket supported options effectively rendering this API redundant.
Methods in jdk.net with annotations of type Deprecated
Modifier and Type
Method
Description
`static <T> T`
Sockets.`getOption(DatagramSocket s, SocketOption<T> name)`
Deprecated.
use `DatagramSocket.getOption(SocketOption)` instead.
`static <T> T`
Sockets.`getOption(ServerSocket s, SocketOption<T> name)`
Deprecated.
use `ServerSocket.getOption(SocketOption)` instead.
`static <T> T`
Sockets.`getOption(Socket s, SocketOption<T> name)`
Deprecated.
use `Socket.getOption(SocketOption)` instead.
`static <T> void`
Sockets.`setOption(DatagramSocket s, SocketOption<T> name, T value)`
Deprecated.
use `DatagramSocket.setOption(SocketOption, Object)` instead.
`static <T> void`
Sockets.`setOption(ServerSocket s, SocketOption<T> name, T value)`
Deprecated.
use `ServerSocket.setOption(SocketOption, Object)` instead.
`static <T> void`
Sockets.`setOption(Socket s, SocketOption<T> name, T value)`
Deprecated.
use `Socket.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.
use `Socket.supportedOptions()`, `ServerSocket.supportedOptions()`, or `DatagramSocket.supportedOptions()` instead.

## Uses of Deprecated in org.ietf.jgss

Methods in org.ietf.jgss with annotations of type Deprecated
Modifier and Type
Method
Description
`void`
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

Classes in org.xml.sax with annotations of type Deprecated
Modifier and Type
Interface
Description
`interface`
`AttributeList`
Deprecated.
This interface has been replaced by the SAX2 `Attributes` interface, which includes Namespace support.
`interface`
`DocumentHandler`
Deprecated.
This interface has been replaced by the SAX2 `ContentHandler` interface, which includes Namespace support.
`class`
`HandlerBase`
Deprecated.
This class works with the deprecated `DocumentHandler` interface.
`interface`
`Parser`
Deprecated.
This interface has been replaced by the SAX2 `XMLReader` interface, which includes Namespace support.

## Uses of Deprecated in org.xml.sax.helpers

Classes in org.xml.sax.helpers with annotations of type Deprecated
Modifier and Type
Class
Description
`class`
`AttributeListImpl`
Deprecated.
This class implements a deprecated interface, `AttributeList`; that interface has been replaced by `Attributes`, which is implemented in the `AttributesImpl` helper class.
`class`
`ParserFactory`
Deprecated.
This class works with the deprecated `Parser` interface.
`final class`
`XMLReaderFactory`
Deprecated.
It is recommended to use `SAXParserFactory` instead.