Uses of Annotation Interface
java.lang.Deprecated
Packages that useDeprecated
Package
Description
This is the core package of the Java Debug Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities.
This package contains JDK extensions to the standard implementation of the
java.lang.management
API and also defines the management interface for some other components of the platform.Provides a simple high-level Http server API, which can be used to build embedded HTTP servers.
Provides interfaces to represent source code as abstract syntax trees (AST).
This package provides a legacy entry point for thejavac tool.
Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting graphics and images.
Provides interfaces and classes for transferring data between and within applications.
Provides interfaces and classes for dealing with different types of events fired by AWT components.
Provides classes and interfaces for producing rendering-independent images.
Contains classes related to developingbeans -- components based on the JavaBeans architecture.
Provides classes and interfaces relating to bean context.
Provides for system input and output through data streams, serialization and the file system.
Provides classes that are fundamental to the design of the Java programming language.
The
java.lang.invoke
package provides low-level primitives for interacting with the Java Virtual Machine.Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.
Provides reference-object classes, which support a limited degree of interaction with the garbage collector.
Provides classes and interfaces for obtaining reflective information about classes and objects.
Provides classes for performing arbitrary-precision integer arithmetic (
BigInteger
) and arbitrary-precision decimal arithmetic (BigDecimal
).Provides the classes for implementing networking applications.
Provides the RMI package.
Provides classes and interface for RMI distributed garbage-collection (DGC).
Provides a class and two interfaces for the RMI registry.
Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
Provides interfaces for generating RSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm) keys as defined in the RSA Laboratory Technical Note PKCS#1, and DSA (Digital Signature Algorithm) keys as defined in NIST's FIPS-186.
Provides classes and interfaces for key specifications and algorithm parameter specifications.
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
A small toolkit of classes that support lock-free thread-safe programming on single variables.
Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.
Provides the classes and interfaces of the Java 2 platform's core logging facilities.
Provides classes for reading and writing the standard ZIP and GZIP file formats.
Defines a contract between user-interface components and an assistive technology that provides access to those components.
Provides the classes and interfaces for cryptographic operations.
Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.
Provides classes and interfaces for key specifications and algorithm parameter specifications.
A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.
A package of the Java Image I/O API dealing with low-level I/O from files and streams.
Utilities to assist in the processing ofprogram elements andtypes.
Provides the core classes for the Java Management Extensions.
Provides the classes which implement advanced dynamic loading.
Provides the definition of the monitor classes.
Provides the open data types and Open MBean descriptor classes.
Provides the definition of the Relation Service.
Interfaces for remote access to JMX MBean servers.
Provides the classes and interfaces for accessing naming services.
Extends the
javax.naming
package to provide functionality for accessing directory services.Provides classes for the secure socket package.
This package provides a framework for authentication and authorization.
Provides classes for public key certificates.
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
Standard interfaces and base classes for JDBC
RowSet
implementations.Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel (once codenamedMetal), which is the default look and feel.
Provides user interface objects that combine two or more look and feels.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces for dealing with
javax.swing.JTable
.Provides classes and interfaces that deal with editable and noneditable text components.
Provides the class
HTMLEditorKit
and supporting classes for creating HTML text editors.Provides classes and interfaces for dealing with
javax.swing.JTree
.Provides interfaces for tools which can be invoked from a program, for example, compilers.
Defines interfaces and classes for the Streaming API for XML (StAX).
Platform specific socket options for the
java.net
andjava.nio.channels
socket classes.Deprecated, for removal: This API element is subject to removal in a future version.
The jdk.jsobject module will be delivered with JavaFX.
The jdk.jsobject module will be delivered with JavaFX.
This package presents a framework that allows application developers to make use of security services like authentication, data integrity and data confidentiality from a variety of underlying security mechanisms like Kerberos, using a unified API.
Provides the interfaces for the Simple API for XML (SAX).
Provides helper classes, including support for bootstrapping SAX-based applications.
Uses ofDeprecated incom.sun.jdi
Classes incom.sun.jdi with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.This exception is no longer thrownclass
Deprecated.This exception is no longer thrownMethods incom.sun.jdi with annotations of typeDeprecatedModifier and TypeMethodDescriptionboolean
VirtualMachine.canAddMethod()
Deprecated.A JVM TI based JDWP back-end will never set this capability to true.boolean
VirtualMachine.canUnrestrictedlyRedefineClasses()
Deprecated.A JVM TI based JDWP back-end will never set this capability to true.Constructors incom.sun.jdi with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Uses ofDeprecated incom.sun.management
Methods incom.sun.management with annotations of typeDeprecatedModifier and TypeMethodDescriptiondefault long
OperatingSystemMXBean.getFreePhysicalMemorySize()
Deprecated.UseOperatingSystemMXBean.getFreeMemorySize()
instead of this historically named method.default double
OperatingSystemMXBean.getSystemCpuLoad()
Deprecated.UseOperatingSystemMXBean.getCpuLoad()
instead of this historically named method.default long
OperatingSystemMXBean.getTotalPhysicalMemorySize()
Deprecated.UseOperatingSystemMXBean.getTotalMemorySize()
instead of this historically named method.Uses ofDeprecated incom.sun.net.httpserver
Methods incom.sun.net.httpserver with annotations of typeDeprecatedModifier and TypeMethodDescriptionString[]
HttpsParameters.getCipherSuites()
Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.boolean
HttpsParameters.getNeedClientAuth()
Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.String[]
HttpsParameters.getProtocols()
Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.boolean
HttpsParameters.getWantClientAuth()
Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.void
HttpsParameters.setCipherSuites
(String[] cipherSuites) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.void
HttpsParameters.setNeedClientAuth
(boolean needClientAuth) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.void
HttpsParameters.setProtocols
(String[] protocols) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.void
HttpsParameters.setWantClientAuth
(boolean wantClientAuth) Deprecated.It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.Uses ofDeprecated incom.sun.source.tree
Methods incom.sun.source.tree with annotations of typeDeprecatedModifier and TypeMethodDescriptionCaseTree.getExpression()
Deprecated.Please useCaseTree.getExpressions()
.Uses ofDeprecated incom.sun.tools.javac
Constructors incom.sun.tools.javac with annotations of typeDeprecatedModifierConstructorDescriptionMain()
Deprecated, for removal: This API element is subject to removal in a future version.Uses ofDeprecated injava.applet
Classes injava.applet with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.interface
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.interface
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.interface
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.Uses ofDeprecated injava.awt
Classes injava.awt with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal class
Deprecated, for removal: This API element is subject to removal in a future version.There is no replacement for this class.class
Deprecated.It is recommended thatAWTEvent
and its subclasses be used insteadFields injava.awt with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final int
Frame.CROSSHAIR_CURSOR
Deprecated.replaced byCursor.CROSSHAIR_CURSOR
.static final int
Frame.DEFAULT_CURSOR
Deprecated.replaced byCursor.DEFAULT_CURSOR
.static final int
Frame.E_RESIZE_CURSOR
Deprecated.replaced byCursor.E_RESIZE_CURSOR
.static final int
Frame.HAND_CURSOR
Deprecated.replaced byCursor.HAND_CURSOR
.static final int
Frame.MOVE_CURSOR
Deprecated.replaced byCursor.MOVE_CURSOR
.static final int
Frame.N_RESIZE_CURSOR
Deprecated.replaced byCursor.N_RESIZE_CURSOR
.static final int
Frame.NE_RESIZE_CURSOR
Deprecated.replaced byCursor.NE_RESIZE_CURSOR
.static final int
Frame.NW_RESIZE_CURSOR
Deprecated.replaced byCursor.NW_RESIZE_CURSOR
.protected staticCursor[]
Cursor.predefined
Deprecated.As of JDK version 1.7, theCursor.getPredefinedCursor(int)
method should be used instead.static final int
Frame.S_RESIZE_CURSOR
Deprecated.replaced byCursor.S_RESIZE_CURSOR
.static final int
Frame.SE_RESIZE_CURSOR
Deprecated.replaced byCursor.SE_RESIZE_CURSOR
.static final int
Frame.SW_RESIZE_CURSOR
Deprecated.replaced byCursor.SW_RESIZE_CURSOR
.static final int
Frame.TEXT_CURSOR
Deprecated.replaced byCursor.TEXT_CURSOR
.static final int
Frame.W_RESIZE_CURSOR
Deprecated.replaced byCursor.W_RESIZE_CURSOR
.static final int
Frame.WAIT_CURSOR
Deprecated.replaced byCursor.WAIT_CURSOR
.Methods injava.awt with annotations of typeDeprecatedModifier and TypeMethodDescriptionboolean
Deprecated.As of JDK version 1.1, should register this component as ActionListener on component which fires action events.void
Deprecated.replaced byadd(String)
.void
Deprecated.replaced byadd(String, int)
.void
BorderLayout.addLayoutComponent
(String name,Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object)
.void
CardLayout.addLayoutComponent
(String name,Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object)
.boolean
List.allowsMultipleSelections()
Deprecated.As of JDK version 1.1, replaced byisMultipleMode()
.void
TextArea.appendText
(String str) Deprecated.As of JDK version 1.1, replaced byappend(String)
.void
Window.applyResourceBundle
(String rbName) Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation
.void
Window.applyResourceBundle
(ResourceBundle rb) Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation
.Component.bounds()
Deprecated.As of JDK version 1.1, replaced bygetBounds()
.void
List.clear()
Deprecated.As of JDK version 1.1, replaced byremoveAll()
.int
Container.countComponents()
Deprecated.As of JDK version 1.1, replaced by getComponentCount().int
Choice.countItems()
Deprecated.As of JDK version 1.1, replaced bygetItemCount()
.int
List.countItems()
Deprecated.As of JDK version 1.1, replaced bygetItemCount()
.int
Menu.countItems()
Deprecated.As of JDK version 1.1, replaced bygetItemCount()
.int
MenuBar.countMenus()
Deprecated.As of JDK version 1.1, replaced bygetMenuCount()
.void
List.delItem
(int position) Deprecated.replaced byremove(String)
andremove(int)
.void
List.delItems
(int start, int end) Deprecated.As of JDK version 1.1, Not for public use in the future.void
Component.deliverEvent
(Event e) Deprecated.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)
.void
Container.deliverEvent
(Event e) Deprecated.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)
void
Component.disable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
MenuItem.disable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
Component.enable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
Component.enable
(boolean b) Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
MenuItem.enable()
Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
MenuItem.enable
(boolean b) Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean)
.void
Graphics.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.void
PrintJob.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.Polygon.getBoundingBox()
Deprecated.As of JDK version 1.1, replaced bygetBounds()
.Graphics.getClipRect()
Deprecated.As of JDK version 1.1, replaced bygetClipBounds()
.CheckboxGroup.getCurrent()
Deprecated.As of JDK version 1.1, replaced bygetSelectedCheckbox()
.int
Frame.getCursorType()
Deprecated.As of JDK version 1.1, replaced byComponent.getCursor()
.abstractString[]
Toolkit.getFontList()
Deprecated.abstractFontMetrics
Toolkit.getFontMetrics
(Font font) Deprecated.As of JDK version 1.2, replaced by theFont
methodgetLineMetrics
.int
Scrollbar.getLineIncrement()
Deprecated.As of JDK version 1.1, replaced bygetUnitIncrement()
.int
FontMetrics.getMaxDecent()
Deprecated.As of JDK version 1.1.1, replaced bygetMaxDescent()
.int
Toolkit.getMenuShortcutKeyMask()
Deprecated.It is recommended that extended modifier keys andToolkit.getMenuShortcutKeyMaskEx()
be used insteadstaticComponentOrientation
ComponentOrientation.getOrientation
(ResourceBundle bdl) Deprecated.As of J2SE 1.4, useComponentOrientation.getOrientation(java.util.Locale)
.int
Scrollbar.getPageIncrement()
Deprecated.As of JDK version 1.1, replaced bygetBlockIncrement()
.int
Scrollbar.getVisible()
Deprecated.As of JDK version 1.1, replaced bygetVisibleAmount()
.finalString
Window.getWarningString()
Deprecated, for removal: This API element is subject to removal in a future version.since JDK 24boolean
Deprecated.As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).boolean
Component.handleEvent
(Event evt) Deprecated.As of JDK version 1.1 replaced by processEvent(AWTEvent).void
Component.hide()
Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean)
.void
Dialog.hide()
Deprecated.As of JDK version 1.5, replaced bysetVisible(boolean)
.void
Window.hide()
Deprecated.As of JDK version 1.5, replaced byWindow.setVisible(boolean)
.void
TextArea.insertText
(String str, int pos) Deprecated.As of JDK version 1.1, replaced byinsert(String, int)
.Container.insets()
Deprecated.As of JDK version 1.1, replaced bygetInsets()
.boolean
Component.inside
(int x, int y) Deprecated.As of JDK version 1.1, replaced by contains(int, int).boolean
Polygon.inside
(int x, int y) Deprecated.As of JDK version 1.1, replaced bycontains(int, int)
.boolean
Rectangle.inside
(int X, int Y) Deprecated.As of JDK version 1.1, replaced bycontains(int, int)
.boolean
Component.isFocusTraversable()
Deprecated.As of 1.4, replaced byisFocusable()
.boolean
List.isSelected
(int index) Deprecated.As of JDK version 1.1, replaced byisIndexSelected(int)
.boolean
Deprecated.As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).boolean
Deprecated.As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).void
Component.layout()
Deprecated.As of JDK version 1.1, replaced bydoLayout()
.void
Container.layout()
Deprecated.As of JDK version 1.1, replaced bydoLayout()
.void
ScrollPane.layout()
Deprecated.As of JDK version 1.1, replaced bydoLayout()
.Component.locate
(int x, int y) Deprecated.As of JDK version 1.1, replaced by getComponentAt(int, int).Container.locate
(int x, int y) Deprecated.As of JDK version 1.1, replaced bygetComponentAt(int, int)
.Component.location()
Deprecated.As of JDK version 1.1, replaced bygetLocation()
.boolean
Deprecated.As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).Component.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.Container.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.List.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.List.minimumSize
(int rows) Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int)
.TextArea.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.TextArea.minimumSize
(int rows, int columns) Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int, int)
.TextField.minimumSize()
Deprecated.As of JDK version 1.1, replaced bygetMinimumSize()
.TextField.minimumSize
(int columns) Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int)
.boolean
Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).boolean
Deprecated.As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).boolean
Component.mouseEnter
(Event evt, int x, int y) Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).boolean
Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).boolean
Deprecated.As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).boolean
Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).void
Component.move
(int x, int y) Deprecated.As of JDK version 1.1, replaced bysetLocation(int, int)
.void
Rectangle.move
(int x, int y) Deprecated.As of JDK version 1.1, replaced bysetLocation(int, int)
.void
Component.nextFocus()
Deprecated.As of JDK version 1.1, replaced by transferFocus().boolean
Deprecated.As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).boolean
Deprecated.As of JDK version 1.1, replaced bydispatchEvent
.boolean
Deprecated.As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).boolean
Deprecated.As of JDK version 1.1 replaced bydispatchEvent(AWTEvent)
.Component.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.Container.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.List.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.List.preferredSize
(int rows) Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int)
.TextArea.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.TextArea.preferredSize
(int rows, int columns) Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int, int)
.TextField.preferredSize()
Deprecated.As of JDK version 1.1, replaced bygetPreferredSize()
.TextField.preferredSize
(int columns) Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int)
.protected static void
AWTKeyStroke.registerSubclass
(Class<?> subclass) Deprecated.void
TextArea.replaceText
(String str, int start, int end) Deprecated.As of JDK version 1.1, replaced byreplaceRange(String, int, int)
.void
Component.reshape
(int x, int y, int width, int height) Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.void
Rectangle.reshape
(int x, int y, int width, int height) Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.void
Window.reshape
(int x, int y, int width, int height) Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.void
Component.resize
(int width, int height) Deprecated.As of JDK version 1.1, replaced bysetSize(int, int)
.void
Deprecated.As of JDK version 1.1, replaced bysetSize(Dimension)
.void
Rectangle.resize
(int width, int height) Deprecated.As of JDK version 1.1, replaced bysetSize(int, int)
.void
CheckboxGroup.setCurrent
(Checkbox box) Deprecated.As of JDK version 1.1, replaced bysetSelectedCheckbox(Checkbox)
.void
Frame.setCursor
(int cursorType) Deprecated.As of JDK version 1.1, replaced byComponent.setCursor(Cursor)
.void
TextField.setEchoCharacter
(char c) Deprecated.As of JDK version 1.1, replaced bysetEchoChar(char)
.void
Scrollbar.setLineIncrement
(int v) Deprecated.As of JDK version 1.1, replaced bysetUnitIncrement(int)
.void
List.setMultipleSelections
(boolean b) Deprecated.As of JDK version 1.1, replaced bysetMultipleMode(boolean)
.void
Scrollbar.setPageIncrement
(int v) Deprecated.As of JDK version 1.1, replaced bysetBlockIncrement()
.void
Component.show()
Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean)
.void
Component.show
(boolean b) Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean)
.void
Dialog.show()
Deprecated.As of JDK version 1.5, replaced bysetVisible(boolean)
.void
Window.show()
Deprecated.As of JDK version 1.5, replaced byWindow.setVisible(boolean)
.Component.size()
Deprecated.As of JDK version 1.1, replaced bygetSize()
.Constructors injava.awt with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated.It is recommended thatAWTEvent(Object, int)
be used insteadUses ofDeprecated injava.awt.datatransfer
Fields injava.awt.datatransfer with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalDataFlavor
DataFlavor.plainTextFlavor
Deprecated.as of 1.3.Methods injava.awt.datatransfer with annotations of typeDeprecatedModifier and TypeMethodDescriptionboolean
Deprecated.As inconsistent withhashCode()
contract, useDataFlavor.isMimeTypeEqual(String)
instead.protectedString
DataFlavor.normalizeMimeType
(String mimeType) Deprecated.This method is never invoked by this implementation from 1.1 onwardsprotectedString
DataFlavor.normalizeMimeTypeParameter
(String parameterName,String parameterValue) Deprecated.This method is never invoked by this implementation from 1.1 onwardsUses ofDeprecated injava.awt.event
Fields injava.awt.event with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final int
InputEvent.ALT_GRAPH_MASK
Deprecated.It is recommended that ALT_GRAPH_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.ALT_MASK
Deprecated.It is recommended that ALT_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.BUTTON1_MASK
Deprecated.It is recommended that BUTTON1_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.BUTTON2_MASK
Deprecated.It is recommended that BUTTON2_DOWN_MASK andInputEvent.getModifiersEx()
be used instead.static final int
InputEvent.BUTTON3_MASK
Deprecated.It is recommended that BUTTON3_DOWN_MASK andInputEvent.getModifiersEx()
be used instead.static final int
InputEvent.CTRL_MASK
Deprecated.It is recommended that CTRL_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.META_MASK
Deprecated.It is recommended that META_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadstatic final int
InputEvent.SHIFT_MASK
Deprecated.It is recommended that SHIFT_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadMethods injava.awt.event with annotations of typeDeprecatedModifier and TypeMethodDescriptionstaticString
KeyEvent.getKeyModifiersText
(int modifiers) Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersExText(int)
be used insteadint
InputEvent.getModifiers()
Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersEx()
be used insteadvoid
KeyEvent.setModifiers
(int modifiers) Deprecated.as of JDK1.1.4Constructors injava.awt.event with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated.as of JDK1.1; useKeyEvent(Component, int, long, int, int, char)
insteadUses ofDeprecated injava.awt.image.renderable
Methods injava.awt.image.renderable with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
RenderContext.concetenateTransform
(AffineTransform modTransform) Deprecated.replaced byconcatenateTransform(AffineTransform)
.void
RenderContext.preConcetenateTransform
(AffineTransform modTransform) Deprecated.replaced bypreConcatenateTransform(AffineTransform)
.Uses ofDeprecated injava.beans
Classes injava.beans with annotations of typeDeprecatedModifier and TypeInterfaceDescriptioninterface
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated.Methods injava.beans with annotations of typeDeprecatedModifier and TypeMethodDescriptionstaticObject
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 removedstaticObject
Beans.instantiate
(ClassLoader cls,String beanName,BeanContext beanContext,AppletInitializer initializer) Deprecated, for removal: This API element is subject to removal in a future version.It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext)
, because the Applet API is deprecated.Uses ofDeprecated injava.beans.beancontext
Classes injava.beans.beancontext with annotations of typeDeprecatedModifier and TypeInterfaceDescriptioninterface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.interface
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.Uses ofDeprecated injava.io
Classes injava.io with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.This class incorrectly assumes that bytes adequately represent characters.class
Deprecated.This class does not properly convert characters into bytes.Fields injava.io with annotations of typeDeprecatedModifier and TypeFieldDescriptionWriteAbortedException.detail
Deprecated.This field predates the general-purpose exception chaining facility.Methods injava.io with annotations of typeDeprecatedModifier and TypeMethodDescriptionfinalString
DataInputStream.readLine()
Deprecated.This method does not properly convert bytes to characters.ObjectInputStream.readLine()
Deprecated.This method does not properly convert bytes to characters.ByteArrayOutputStream.toString
(int hibyte) Deprecated.This method does not properly convert bytes into characters.File.toURL()
Deprecated.This method does not automatically escape characters that are illegal in URLs.abstract void
ObjectOutputStream.PutField.write
(ObjectOutput out) Deprecated, for removal: This API element is subject to removal in a future version.This method does not write the values contained by thisPutField
object in a proper format, and may result in corruption of the serialization stream.Constructors injava.io with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated.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 ofDeprecated injava.lang
Classes injava.lang with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.There is no replacement for this class.class
Deprecated, for removal: This API element is subject to removal in a future version.Thread.stop()
was originally specified to "stop" a victim thread by causing the victim thread to throw aThreadDeath
.Fields injava.lang with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalCharacter.UnicodeBlock
Character.UnicodeBlock.SURROGATES_AREA
Deprecated.Instead ofSURROGATES_AREA
, useCharacter.UnicodeBlock.HIGH_SURROGATES
,Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES
, andCharacter.UnicodeBlock.LOW_SURROGATES
.Methods injava.lang with annotations of typeDeprecatedModifier and TypeMethodDescriptionfinal 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 finalClass
<?> ClassLoader.defineClass
(byte[] b, int off, int len) Deprecated.Replaced bydefineClass(String, byte[], int, int)
final void
ThreadGroup.destroy()
Deprecated, for removal: This API element is subject to removal in a future version.This method was originally specified to destroy an empty thread group.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[])
orProcessBuilder
should be used instead.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[])
orProcessBuilder
should be used instead.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[], File)
orProcessBuilder
should be used instead.protected final void
Enum.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
Object.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.void
String.getBytes
(int srcBegin, int srcEnd, byte[] dst, int dstBegin) Deprecated.This method does not properly convert characters into bytes.long
Thread.getId()
Deprecated.This method is not final and may be overridden to return a value that is not the thread ID.protectedPackage
ClassLoader.getPackage
(String name) Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage
to return aPackage
from a parent loader, then the properties exposed by thePackage
may not be as expected in the rest of the program.staticPackage
Package.getPackage
(String name) Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage
to return aPackage
from a parent loader, then the properties exposed by thePackage
may not be as expected in the rest of the program.staticSecurityManager
System.getSecurityManager()
Deprecated, for removal: This API element is subject to removal in a future version.This method originally returnedthe 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 adaemon thread group that is automatically destroyed when its last thread terminates.boolean
ThreadGroup.isDestroyed()
Deprecated, for removal: This API element is subject to removal in a future version.This method originally indicated if the thread group is destroyed.static boolean
Character.isJavaLetter
(char ch) Deprecated.Replaced by isJavaIdentifierStart(char).static boolean
Character.isJavaLetterOrDigit
(char ch) Deprecated.Replaced by isJavaIdentifierPart(char).static boolean
Character.isSpace
(char ch) Deprecated.Replaced by isWhitespace(char).int
Runtime.Version.major()
Deprecated.As of Java SE 10, the first element of a version number is not the major-release number but the feature-release counter, incremented for every time-based release.int
Runtime.Version.minor()
Deprecated.As of Java SE 10, the second element of a version number is not the minor-release number but the interim-release counter, incremented for every interim release.Class.newInstance()
Deprecated.This method propagates any exception thrown by the nullary constructor, including a checked exception.void
Runtime.runFinalization()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.static void
System.runFinalization()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.int
Runtime.Version.security()
Deprecated.As of Java SE 10, the third element of a version number is not the security level but the update-release counter, incremented for every update release.final void
ThreadGroup.setDaemon
(boolean daemon) Deprecated, for removal: This API element is subject to removal in a future version.This method originally configured whether the thread group is adaemon 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 setthe system-wide Security Manager.final void
Thread.stop()
Deprecated, for removal: This API element is subject to removal in a future version.This method was originally specified to "stop" a victim thread by causing the victim thread to throw aThreadDeath
.Constructors injava.lang with annotations of typeDeprecatedModifierConstructorDescriptionBoolean
(boolean value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Byte
(byte value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Character
(char value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Double
(double value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Float
(double value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Float
(float value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Integer
(int value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Long
(long value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Short
(short value) Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.Deprecated, for removal: This API element is subject to removal in a future version.It is rarely appropriate to use this constructor.String
(byte[] ascii, int hibyte) Deprecated.This method does not properly convert bytes into characters.String
(byte[] ascii, int hibyte, int offset, int count) Deprecated.This method does not properly convert bytes into characters.Uses ofDeprecated injava.lang.invoke
Methods injava.lang.invoke with annotations of typeDeprecatedModifier and TypeMethodDescriptionboolean
MethodHandles.Lookup.hasPrivateAccess()
Deprecated.This method was originally designed to testPRIVATE
access that implies full privilege access butMODULE
access has since become independent ofPRIVATE
access.Uses ofDeprecated injava.lang.management
Methods injava.lang.management with annotations of typeDeprecatedModifier and TypeMethodDescriptionint
MemoryMXBean.getObjectPendingFinalizationCount()
Deprecated.Finalization has been deprecated for removal.Uses ofDeprecated injava.lang.ref
Methods injava.lang.ref with annotations of typeDeprecatedModifier and TypeMethodDescriptionboolean
Reference.isEnqueued()
Deprecated.This method was originally specified to test if a reference object has been cleared and enqueued but was never implemented to do this test.Uses ofDeprecated injava.lang.reflect
Methods injava.lang.reflect with annotations of typeDeprecatedModifier and TypeMethodDescriptionstaticClass
<?> 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 injava.lang.reflect with annotations of typeDeprecatedUses ofDeprecated injava.math
Fields injava.math with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final int
BigDecimal.ROUND_CEILING
Deprecated.UseRoundingMode.CEILING
instead.static final int
BigDecimal.ROUND_DOWN
Deprecated.UseRoundingMode.DOWN
instead.static final int
BigDecimal.ROUND_FLOOR
Deprecated.UseRoundingMode.FLOOR
instead.static final int
BigDecimal.ROUND_HALF_DOWN
Deprecated.UseRoundingMode.HALF_DOWN
instead.static final int
BigDecimal.ROUND_HALF_EVEN
Deprecated.UseRoundingMode.HALF_EVEN
instead.static final int
BigDecimal.ROUND_HALF_UP
Deprecated.UseRoundingMode.HALF_UP
instead.static final int
BigDecimal.ROUND_UNNECESSARY
Deprecated.UseRoundingMode.UNNECESSARY
instead.static final int
BigDecimal.ROUND_UP
Deprecated.UseRoundingMode.UP
instead.Methods injava.math with annotations of typeDeprecatedModifier and TypeMethodDescriptionBigDecimal.divide
(BigDecimal divisor, int roundingMode) Deprecated.The methodBigDecimal.divide(BigDecimal, RoundingMode)
should be used in preference to this legacy method.BigDecimal.divide
(BigDecimal divisor, int scale, int roundingMode) Deprecated.The methodBigDecimal.divide(BigDecimal, int, RoundingMode)
should be used in preference to this legacy method.BigDecimal.setScale
(int newScale, int roundingMode) Deprecated.The methodBigDecimal.setScale(int, RoundingMode)
should be used in preference to this legacy method.Uses ofDeprecated injava.net
Fields injava.net with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final int
HttpURLConnection.HTTP_SERVER_ERROR
Deprecated.it is misplaced and shouldn't have existed.Methods injava.net with annotations of typeDeprecatedModifier and TypeMethodDescriptionstaticString
Deprecated.The resulting string may vary depending on the default charset.staticString
Deprecated.The resulting string may vary depending on the default charset.staticString
URLConnection.getDefaultRequestProperty
(String key) Deprecated.The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained.MulticastSocket.getInterface()
Deprecated.The network interface may not be uniquely identified by the InetAddress returned.boolean
MulticastSocket.getLoopbackMode()
Deprecated.protected abstract byte
DatagramSocketImpl.getTTL()
Deprecated, for removal: This API element is subject to removal in a future version.use getTimeToLive instead.byte
MulticastSocket.getTTL()
Deprecated, for removal: This API element is subject to removal in a future version.use theMulticastSocket.getTimeToLive()
method instead, which returns anint instead of abyte.void
MulticastSocket.joinGroup
(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to join the multicast group.void
MulticastSocket.leaveGroup
(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to leave the multicast group.void
MulticastSocket.send
(DatagramPacket p, byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.Use the following code or its equivalent instead:static void
DatagramSocket.setDatagramSocketImplFactory
(DatagramSocketImplFactory fac) Deprecated.UseDatagramChannel
, or subclassDatagramSocket
directly.static void
URLConnection.setDefaultRequestProperty
(String key,String value) Deprecated.The instance specific setRequestProperty method should be used after an appropriate instance of URLConnection is obtained.void
MulticastSocket.setInterface
(InetAddress inf) Deprecated.The InetAddress may not uniquely identify the network interface.void
MulticastSocket.setLoopbackMode
(boolean disable) Deprecated.static void
ServerSocket.setSocketFactory
(SocketImplFactory fac) Deprecated.Use aServerSocketFactory
and subclassServerSocket
directly.static void
Socket.setSocketImplFactory
(SocketImplFactory fac) Deprecated.Use aSocketFactory
and subclassSocket
directly.protected abstract void
DatagramSocketImpl.setTTL
(byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.use setTimeToLive instead.void
MulticastSocket.setTTL
(byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.use theMulticastSocket.setTimeToLive(int)
method instead, which usesint instead ofbyte as the type for ttl.protected void
Deprecated.Use setURL(URL, String, String, int, String, String, String, String);Constructors injava.net with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.UseDatagramSocket
instead for UDP transport.Socket
(InetAddress host, int port, boolean stream) Deprecated, for removal: This API element is subject to removal in a future version.UseDatagramSocket
instead for UDP transport.Deprecated.UseURI.toURL()
to construct an instance of URL.Deprecated.UseURI.toURL()
to construct an instance of URL.URL
(String protocol,String host, int port,String file,URLStreamHandler handler) Deprecated.UseURL.of(URI, URLStreamHandler)
to construct an instance of URL associated with a custom protocol handler.Deprecated.UseURI.toURL()
to construct an instance of URL.Deprecated.UseURI.toURL()
to construct an instance of URL.URL
(URL context,String spec,URLStreamHandler handler) Deprecated.UseURL.of(URI, URLStreamHandler)
to construct an instance of URL associated with a custom protocol handler.Uses ofDeprecated injava.rmi
Classes injava.rmi with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.UseSecurityException
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.There is no replacement for the Security Manager.class
Deprecated.no replacementConstructors injava.rmi with annotations of typeDeprecatedModifierConstructorDescriptionRMISecurityException
(String name) Deprecated.no replacementRMISecurityException
(String name,String arg) Deprecated.no replacementDeprecated.no replacementUses ofDeprecated injava.rmi.dgc
Methods injava.rmi.dgc with annotations of typeDeprecatedUses ofDeprecated injava.rmi.registry
Classes injava.rmi.registry with annotations of typeDeprecatedMethods injava.rmi.registry with annotations of typeDeprecatedModifier and TypeMethodDescriptionRegistryHandler.registryImpl
(int port) Deprecated.no replacement.RegistryHandler.registryStub
(String host, int port) Deprecated.no replacement.Uses ofDeprecated injava.rmi.server
Classes injava.rmi.server with annotations of typeDeprecatedModifier and TypeInterfaceDescriptioninterface
Deprecated.no replacementclass
Deprecated.no replacementclass
Deprecated.no replacementinterface
Deprecated.no replacement.class
Deprecated.Statically generated stubs are deprecated, since stubs are generated dynamically.interface
Deprecated.No replacement.interface
Deprecated.no replacement.class
Deprecated.no replacement.class
Deprecated.no replacement.class
Deprecated.This class is obsolete.Fields injava.rmi.server with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final long
RemoteRef.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
ServerRef.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.Methods injava.rmi.server with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
Skeleton.dispatch
(Remote obj,RemoteCall theCall, int opnum, long hash) Deprecated.no replacementvoid
RemoteCall.done()
Deprecated.no replacementvoid
RemoteRef.done
(RemoteCall call) Deprecated.1.2 style stubs no longer use this method.void
RemoteCall.executeCall()
Deprecated.no replacementstaticRemoteStub
UnicastRemoteObject.exportObject
(Remote obj) Deprecated.This method is deprecated because it supports only static stubs.staticPrintStream
LogStream.getDefaultStream()
Deprecated.no replacementRemoteCall.getInputStream()
Deprecated.no replacementOperation.getOperation()
Deprecated.no replacementSkeleton.getOperations()
Deprecated.no replacementLogStream.getOutputStream()
Deprecated.no replacementRemoteCall.getOutputStream()
Deprecated.no replacementRemoteCall.getResultStream
(boolean success) Deprecated.no replacementLoaderHandler.getSecurityContext
(ClassLoader loader) Deprecated.no replacementstaticObject
RMIClassLoader.getSecurityContext
(ClassLoader loader) Deprecated.no replacement.void
RemoteRef.invoke
(RemoteCall call) Deprecated.1.2 style stubs no longer use this method.Class
<?> Deprecated.no replacementClass
<?> Deprecated.no replacementstaticClass
<?> Deprecated.replaced byloadClass(String,String)
methodstaticLogStream
Deprecated.no replacementRemoteRef.newCall
(RemoteObject obj,Operation[] op, int opnum, long hash) Deprecated.1.2 style stubs no longer use this method.static int
LogStream.parseLevel
(String s) Deprecated.no replacementvoid
RemoteCall.releaseInputStream()
Deprecated.no replacementvoid
RemoteCall.releaseOutputStream()
Deprecated.no replacementstatic void
LogStream.setDefaultStream
(PrintStream newDefault) Deprecated.no replacementvoid
LogStream.setOutputStream
(OutputStream out) Deprecated.no replacementprotected static void
RemoteStub.setRef
(RemoteStub stub,RemoteRef ref) Deprecated.No replacement.LogStream.toString()
Deprecated.no replacementOperation.toString()
Deprecated.no replacementvoid
LogStream.write
(byte[] b, int off, int len) Deprecated.no replacementvoid
LogStream.write
(int b) Deprecated.no replacementConstructors injava.rmi.server with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated.no replacementDeprecated.no replacementUses ofDeprecated injava.security
Classes injava.security with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal class
Deprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction with thethe Security Manager, which is no longer supported.class
Deprecated, for removal: This API element is subject to removal in a future version.This exception was only useful in conjunction withthe Security Manager, which is no longer supported.final class
Deprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction withthe Security Manager, which is no longer supported.interface
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.interface
Deprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction withthe Security Manager, which is no longer supported.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.class
Deprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction withthe Security Manager, which is no longer supported.static interface
Deprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction withthe Security Manager, which is no longer supported.class
Deprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction withthe Security Manager, which is no longer supported.class
Deprecated, for removal: This API element is subject to removal in a future version.This class is deprecated and subject to removal in a future version of Java SE.Fields injava.security with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final long
Key.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
PrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
PublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.Methods injava.security with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected abstractObject
SignatureSpi.engineGetParameter
(String param) Deprecated.protected abstract void
SignatureSpi.engineSetParameter
(String param,Object value) Deprecated.Replaced byengineSetParameter
.staticString
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.finalObject
Signature.getParameter
(String param) Deprecated.double
Provider.getVersion()
Deprecated.useProvider.getVersionStr()
instead.final void
Signature.setParameter
(String param,Object value) Deprecated.UsesetParameter
.Constructors injava.security with annotations of typeDeprecatedModifierConstructorDescriptionprotected
AuthProvider
(String name, double version,String info) Deprecated.useAuthProvider(String, String, String)
instead.protected
Deprecated.useProvider(String, String, String)
instead.Uses ofDeprecated injava.security.cert
Methods injava.security.cert with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
X509CRLSelector.addIssuerName
(String name) Deprecated.X509CertSelector.getIssuerAsString()
Deprecated.abstractPrincipal
X509Certificate.getIssuerDN()
Deprecated.UseX509Certificate.getIssuerX500Principal()
instead.abstractPrincipal
X509CRL.getIssuerDN()
Deprecated.UseX509CRL.getIssuerX500Principal()
instead.X509CertSelector.getSubjectAsString()
Deprecated.abstractPrincipal
X509Certificate.getSubjectDN()
Deprecated.UseX509Certificate.getSubjectX500Principal()
instead.void
Deprecated.void
X509CertSelector.setSubject
(String subjectDN) Deprecated.Uses ofDeprecated injava.security.interfaces
Fields injava.security.interfaces with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final long
DSAPrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
DSAPublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
ECPrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
ECPublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
RSAMultiPrimePrivateCrtKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
RSAPrivateCrtKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
RSAPrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
RSAPublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.Uses ofDeprecated injava.security.spec
Fields injava.security.spec with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalPSSParameterSpec
PSSParameterSpec.DEFAULT
Deprecated.This field uses the default values defined in the PKCS #1 standard.Constructors injava.security.spec with annotations of typeDeprecatedModifierConstructorDescriptionPSSParameterSpec
(int saltLen) Deprecated.This constructor uses the default values defined in the PKCS #1 standard except for the salt length.Uses ofDeprecated injava.sql
Methods injava.sql with annotations of typeDeprecatedModifier and TypeMethodDescriptionCallableStatement.getBigDecimal
(int parameterIndex, int scale) Deprecated.usegetBigDecimal(int parameterIndex)
orgetBigDecimal(String parameterName)
ResultSet.getBigDecimal
(int columnIndex, int scale) Deprecated.UsegetBigDecimal(int columnIndex)
orgetBigDecimal(String columnLabel)
ResultSet.getBigDecimal
(String columnLabel, int scale) Deprecated.UsegetBigDecimal(int columnIndex)
orgetBigDecimal(String columnLabel)
int
Time.getDate()
Deprecated.int
Time.getDay()
Deprecated.int
Date.getHours()
Deprecated.staticPrintStream
DriverManager.getLogStream()
Deprecated.UsegetLogWriter
int
Date.getMinutes()
Deprecated.int
Time.getMonth()
Deprecated.int
Date.getSeconds()
Deprecated.ResultSet.getUnicodeStream
(int columnIndex) Deprecated.usegetCharacterStream
in place ofgetUnicodeStream
ResultSet.getUnicodeStream
(String columnLabel) Deprecated.usegetCharacterStream
insteadint
Time.getYear()
Deprecated.void
Time.setDate
(int i) Deprecated.void
Date.setHours
(int i) Deprecated.static void
DriverManager.setLogStream
(PrintStream out) Deprecated.UsesetLogWriter
void
Date.setMinutes
(int i) Deprecated.void
Time.setMonth
(int i) Deprecated.void
Date.setSeconds
(int i) Deprecated.void
PreparedStatement.setUnicodeStream
(int parameterIndex,InputStream x, int length) Deprecated.UsesetCharacterStream
void
Time.setYear
(int i) Deprecated.Constructors injava.sql with annotations of typeDeprecatedModifierConstructorDescriptionDate
(int year, int month, int day) Deprecated.instead use the constructorDate(long date)
Time
(int hour, int minute, int second) Deprecated.Use the constructor that takes a milliseconds value in place of this constructorTimestamp
(int year, int month, int date, int hour, int minute, int second, int nano) Deprecated.instead use the constructorTimestamp(long millis)
Uses ofDeprecated injava.util
Classes injava.util with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.This class and theObserver
interface have been deprecated.interface
Deprecated.This interface has been deprecated.Methods injava.util with annotations of typeDeprecatedModifier and TypeMethodDescriptionint
Date.getDate()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_MONTH)
.int
Date.getDay()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_WEEK)
.int
Date.getHours()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.HOUR_OF_DAY)
.int
Date.getMinutes()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.MINUTE)
.int
Date.getMonth()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.MONTH)
.int
Date.getSeconds()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.SECOND)
.int
Date.getTimezoneOffset()
Deprecated.As of JDK version 1.1, replaced by-(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000)
.int
Date.getYear()
Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.YEAR) - 1900
.static long
Deprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s)
.void
Properties.save
(OutputStream out,String comments) Deprecated.This method does not throw an IOException if an I/O error occurs while saving the property list.void
Date.setDate
(int date) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.DAY_OF_MONTH, int date)
.void
Date.setHours
(int hours) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.HOUR_OF_DAY, int hours)
.void
Date.setMinutes
(int minutes) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.MINUTE, int minutes)
.void
Date.setMonth
(int month) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.MONTH, int month)
.void
Date.setSeconds
(int seconds) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.SECOND, int seconds)
.void
Date.setYear
(int year) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.YEAR, year + 1900)
.Date.toGMTString()
Deprecated.As of JDK version 1.1, replaced byDateFormat.format(Date date)
, using a GMTTimeZone
.Date.toLocaleString()
Deprecated.As of JDK version 1.1, replaced byDateFormat.format(Date date)
.static long
Date.UTC
(int year, int month, int date, int hrs, int min, int sec) Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min, sec)
orGregorianCalendar(year + 1900, month, date, hrs, min, sec)
, using a UTCTimeZone
, followed byCalendar.getTime().getTime()
.Constructors injava.util with annotations of typeDeprecatedModifierConstructorDescriptionDate
(int year, int month, int date) Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date)
orGregorianCalendar(year + 1900, month, date)
.Date
(int year, int month, int date, int hrs, int min) Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min)
orGregorianCalendar(year + 1900, month, date, hrs, min)
.Date
(int year, int month, int date, int hrs, int min, int sec) Deprecated.As of JDK version 1.1, replaced byCalendar.set(year + 1900, month, date, hrs, min, sec)
orGregorianCalendar(year + 1900, month, date, hrs, min, sec)
.Deprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s)
.Deprecated.Locale constructors have been deprecated.Deprecated.Locale constructors have been deprecated.Deprecated.Locale constructors have been deprecated.Uses ofDeprecated injava.util.concurrent
Methods injava.util.concurrent with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected void
ThreadPoolExecutor.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.static <T> Callable
<T> Executors.privilegedCallable
(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method originally returned aCallable
object that when called, executed the givencallable
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 aCallable
object that when called, executed the givencallable
under the current access control context, with the current context class loader as the context class loader.staticThreadFactory
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 ofDeprecated injava.util.concurrent.atomic
Methods injava.util.concurrent.atomic with annotations of typeDeprecatedModifier and TypeMethodDescriptionboolean
AtomicBoolean.weakCompareAndSet
(boolean expectedValue, boolean newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicBoolean.compareAndExchange(boolean, boolean)
andAtomicBoolean.compareAndSet(boolean, boolean)
).final boolean
AtomicInteger.weakCompareAndSet
(int expectedValue, int newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicInteger.compareAndExchange(int, int)
andAtomicInteger.compareAndSet(int, int)
).final boolean
AtomicIntegerArray.weakCompareAndSet
(int i, int expectedValue, int newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicIntegerArray.compareAndExchange(int, int, int)
andAtomicIntegerArray.compareAndSet(int, int, int)
).final boolean
AtomicLong.weakCompareAndSet
(long expectedValue, long newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicLong.compareAndExchange(long, long)
andAtomicLong.compareAndSet(long, long)
).final boolean
AtomicLongArray.weakCompareAndSet
(int i, long expectedValue, long newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicLongArray.compareAndExchange(int, long, long)
andAtomicLongArray.compareAndSet(int, long, long)
).final boolean
AtomicReference.weakCompareAndSet
(V expectedValue,V newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicReference.compareAndExchange(V, V)
andAtomicReference.compareAndSet(V, V)
).final boolean
AtomicReferenceArray.weakCompareAndSet
(int i,E expectedValue,E newValue) Deprecated.This method has plain memory effects but the method name implies volatile memory effects (see methods such asAtomicReferenceArray.compareAndExchange(int, E, E)
andAtomicReferenceArray.compareAndSet(int, E, E)
).Uses ofDeprecated injava.util.jar
Fields injava.util.jar with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalAttributes.Name
Attributes.Name.EXTENSION_INSTALLATION
Deprecated.Extension mechanism is no longer supported.static finalAttributes.Name
Attributes.Name.IMPLEMENTATION_URL
Deprecated.Extension mechanism is no longer supported.static finalAttributes.Name
Attributes.Name.IMPLEMENTATION_VENDOR_ID
Deprecated.Extension mechanism is no longer supported.Uses ofDeprecated injava.util.logging
Classes injava.util.logging with annotations of typeDeprecatedModifier and TypeInterfaceDescriptioninterface
Deprecated.Fields injava.util.logging with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalLogger
Logger.global
Deprecated.Initialization of this field is prone to deadlocks.Methods injava.util.logging with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
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.staticLoggingMXBean
LogManager.getLoggingMXBean()
Deprecated.java.util.logging.LoggingMXBean
is deprecated and replaced withjava.lang.management.PlatformLoggingMXBean
.int
LogRecord.getThreadID()
Deprecated.Values returned by this method may be synthesized, and may not correspond to the actualthread id, useLogRecord.getLongThreadID()
instead.void
void
Logger.logrb
(Level level,String sourceClass,String sourceMethod,String bundleName,String msg,Object param1) void
Logger.logrb
(Level level,String sourceClass,String sourceMethod,String bundleName,String msg,Object[] params) void
Logger.logrb
(Level level,String sourceClass,String sourceMethod,String bundleName,String msg,Throwable thrown) void
LogRecord.setMillis
(long millis) Deprecated.LogRecord maintains timestamps with nanosecond resolution, usingInstant
values.void
LogRecord.setThreadID
(int threadID) Deprecated.This method doesn't allow to pass a longthread id, useLogRecord.setLongThreadID(long)
instead.Uses ofDeprecated injava.util.zip
Classes injava.util.zip with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.ZipError is no longer used and is obsolete.Methods injava.util.zip with annotations of typeDeprecatedModifier and TypeMethodDescriptionint
Deflater.getTotalIn()
Deprecated.UseDeflater.getBytesRead()
insteadint
Inflater.getTotalIn()
Deprecated.UseInflater.getBytesRead()
insteadint
Deflater.getTotalOut()
Deprecated.UseDeflater.getBytesWritten()
insteadint
Inflater.getTotalOut()
Deprecated.UseInflater.getBytesWritten()
insteadUses ofDeprecated injavax.accessibility
Classes injavax.accessibility with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.This class is deprecated as of version 1.3 of the Java PlatformUses ofDeprecated injavax.crypto
Fields injavax.crypto with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final long
SecretKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.Uses ofDeprecated injavax.crypto.interfaces
Fields injavax.crypto.interfaces with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final long
DHPrivateKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
DHPublicKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.static final long
PBEKey.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.Uses ofDeprecated injavax.crypto.spec
Fields injavax.crypto.spec with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalOAEPParameterSpec
OAEPParameterSpec.DEFAULT
Deprecated.This field uses the default values defined in the PKCS #1 standard.Uses ofDeprecated injavax.imageio.spi
Fields injavax.imageio.spi with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalClass<?>[]
ImageReaderSpi.STANDARD_INPUT_TYPE
Deprecated.Instead of using this field, directly create the equivalent array{ ImageInputStream.class }
.static finalClass<?>[]
ImageWriterSpi.STANDARD_OUTPUT_TYPE
Deprecated.Instead of using this field, directly create the equivalent array{ ImageOutputStream.class }
.Methods injavax.imageio.spi with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
ServiceRegistry.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.Uses ofDeprecated injavax.imageio.stream
Methods injavax.imageio.stream with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected void
FileCacheImageInputStream.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
FileImageInputStream.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
FileImageOutputStream.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
ImageInputStreamImpl.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected void
MemoryCacheImageInputStream.finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.Uses ofDeprecated injavax.lang.model.util
Constructors injavax.lang.model.util with annotations of typeDeprecatedModifierConstructorDescriptionprotected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
ElementKindVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
ElementKindVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
ElementScanner6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
ElementScanner7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
SimpleAnnotationValueVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
SimpleAnnotationValueVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
SimpleElementVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
SimpleElementVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
SimpleTypeVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
SimpleTypeVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
TypeKindVisitor6
(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protected
Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protected
TypeKindVisitor7
(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.Uses ofDeprecated injavax.management
Classes injavax.management with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.UseMBeanServer.getClassLoaderRepository()
instead.Methods injavax.management with annotations of typeDeprecatedModifier and TypeMethodDescriptiondefaultObjectInputStream
MBeanServer.deserialize
(String className, byte[] data) Deprecated.UseMBeanServer.getClassLoaderRepository()
to obtain the class loader repository and use it to deserialize.defaultObjectInputStream
MBeanServer.deserialize
(String className,ObjectName loaderName, byte[] data) Deprecated.UsegetClassLoader
to obtain the class loader for deserialization.defaultObjectInputStream
MBeanServer.deserialize
(ObjectName name, byte[] data) Deprecated.UsegetClassLoaderFor
to obtain the appropriate class loader for deserialization.void
AttributeValueExp.setMBeanServer
(MBeanServer s) Deprecated.This method has no effect.void
StringValueExp.setMBeanServer
(MBeanServer s) Deprecated.void
ValueExp.setMBeanServer
(MBeanServer s) Deprecated.This method is not needed because aValueExp
can access the MBean server in which it is being evaluated by usingQueryEval.getMBeanServer()
.Constructors injavax.management with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated.An instance created with this constructor cannot be used in a query.Uses ofDeprecated injavax.management.loading
Classes injavax.management.loading with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.UseMBeanServer.getClassLoaderRepository()
instead.Uses ofDeprecated injavax.management.monitor
Fields injavax.management.monitor with annotations of typeDeprecatedModifier and TypeFieldDescriptionprotected int
Monitor.alreadyNotified
Deprecated.equivalent toMonitor.alreadyNotifieds
[0].protectedString
Monitor.dbgTag
Deprecated.No replacement.Methods injavax.management.monitor with annotations of typeDeprecatedModifier and TypeMethodDescriptionCounterMonitor.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byCounterMonitor.getDerivedGauge(ObjectName)
CounterMonitorMBean.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getDerivedGauge(ObjectName)
GaugeMonitor.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byGaugeMonitor.getDerivedGauge(ObjectName)
GaugeMonitorMBean.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byGaugeMonitorMBean.getDerivedGauge(ObjectName)
StringMonitor.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byStringMonitor.getDerivedGauge(ObjectName)
StringMonitorMBean.getDerivedGauge()
Deprecated.As of JMX 1.2, replaced byStringMonitorMBean.getDerivedGauge(ObjectName)
long
CounterMonitor.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byCounterMonitor.getDerivedGaugeTimeStamp(ObjectName)
long
CounterMonitorMBean.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)
long
GaugeMonitor.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byGaugeMonitor.getDerivedGaugeTimeStamp(ObjectName)
long
GaugeMonitorMBean.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byGaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)
long
StringMonitor.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byStringMonitor.getDerivedGaugeTimeStamp(ObjectName)
long
StringMonitorMBean.getDerivedGaugeTimeStamp()
Deprecated.As of JMX 1.2, replaced byStringMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)
Monitor.getObservedObject()
Deprecated.As of JMX 1.2, replaced byMonitor.getObservedObjects()
MonitorMBean.getObservedObject()
Deprecated.As of JMX 1.2, replaced byMonitorMBean.getObservedObjects()
CounterMonitor.getThreshold()
Deprecated.As of JMX 1.2, replaced byCounterMonitor.getThreshold(ObjectName)
CounterMonitorMBean.getThreshold()
Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getThreshold(ObjectName)
void
Monitor.setObservedObject
(ObjectName object) Deprecated.As of JMX 1.2, replaced byMonitor.addObservedObject(javax.management.ObjectName)
void
MonitorMBean.setObservedObject
(ObjectName object) Deprecated.As of JMX 1.2, replaced byMonitorMBean.addObservedObject(javax.management.ObjectName)
void
CounterMonitor.setThreshold
(Number value) Deprecated.As of JMX 1.2, replaced byCounterMonitor.setInitThreshold(java.lang.Number)
void
CounterMonitorMBean.setThreshold
(Number value) Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.setInitThreshold(java.lang.Number)
Uses ofDeprecated injavax.management.openmbean
Fields injavax.management.openmbean with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalString[]
OpenType.ALLOWED_CLASSNAMES
Deprecated.UseALLOWED_CLASSNAMES_LIST
instead.Uses ofDeprecated injavax.management.relation
Constructors injavax.management.relation with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Uses ofDeprecated injavax.management.remote
Methods injavax.management.remote with annotations of typeDeprecatedModifier and TypeMethodDescriptiondefaultMBeanServerConnection
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 ofDeprecated injavax.naming
Fields injavax.naming with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final long
Name.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.Uses ofDeprecated injavax.naming.directory
Fields injavax.naming.directory with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final long
Attribute.serialVersionUID
Deprecated.AserialVersionUID
field in an interface is ineffectual.Uses ofDeprecated injavax.net.ssl
Methods injavax.net.ssl with annotations of typeDeprecatedModifier and TypeMethodDescriptionHandshakeCompletedEvent.getPeerCertificateChain()
Deprecated, for removal: This API element is subject to removal in a future version.TheHandshakeCompletedEvent.getPeerCertificates()
method that returns an array ofjava.security.cert.Certificate
should be used instead.defaultX509Certificate[]
SSLSession.getPeerCertificateChain()
Deprecated, for removal: This API element is subject to removal in a future version.TheSSLSession.getPeerCertificates()
method that returns an array ofjava.security.cert.Certificate
should be used instead.Uses ofDeprecated injavax.security.auth
Classes injavax.security.auth with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
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 injavax.security.auth with annotations of typeDeprecatedModifier and TypeMethodDescriptionstatic <T> T
Subject.doAs
(Subject subject,PrivilegedAction<T> action) Deprecated, for removal: This API element is subject to removal in a future version.This method originally performed the specifiedPrivilegedAction
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 specifiedPrivilegedExceptionAction
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 specifiedPrivilegedAction
with privileges enabled and restricted by the specifiedAccessControlContext
.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 specifiedPrivilegedExceptionAction
with privileges enabled and restricted by the specifiedAccessControlContext
.staticSubject
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 providedAccessControlContext
, which was only useful in conjunction withthe Security Manager, which is no longer supported.Uses ofDeprecated injavax.security.cert
Classes injavax.security.cert with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.class
Deprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.cert
instead.Uses ofDeprecated injavax.sound.sampled
Classes injavax.sound.sampled with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.There is no replacement for this class.Uses ofDeprecated injavax.sql.rowset
Fields injavax.sql.rowset with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final boolean
CachedRowSet.COMMIT_ON_ACCEPT_CHANGES
Deprecated.Because this field is final (it is part of an interface), its value cannot be changed.Methods injavax.sql.rowset with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
BaseRowSet.setUnicodeStream
(int parameterIndex,InputStream x, int length) Deprecated.getCharacterStream should be used in its placeUses ofDeprecated injavax.swing
Classes injavax.swing with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.protected class
Deprecated.This class is no longer used or needed.Fields injavax.swing with annotations of typeDeprecatedModifier and TypeFieldDescriptionprotectedFocusListener
JComponent.AccessibleJComponent.accessibleFocusHandler
Deprecated.protected boolean
JViewport.backingStore
Deprecated.As of Java 2 platform v1.3protected static finalComponent
ImageIcon.component
Deprecated.since 1.8protected static finalMediaTracker
ImageIcon.tracker
Deprecated.since 1.8Methods injavax.swing with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
RepaintManager.addDirtyRegion
(Applet applet, int x, int y, int w, int h) Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated.staticJScrollPane
JTable.createScrollPaneForTable
(JTable aTable) Deprecated.As of Swing version 1.0.2, replaced bynew JScrollPane(aTable)
.void
JComponent.disable()
Deprecated.As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean)
.static void
FocusManager.disableSwingFocusManager()
Deprecated.as of 1.4, replaced byKeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy)
void
JComponent.enable()
Deprecated.As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean)
.staticComponent
SwingUtilities.findFocusOwner
(Component c) Deprecated.As of 1.4, replaced byKeyboardFocusManager.getFocusOwner()
.JMenuBar.getComponentAtIndex
(int i) Deprecated.replaced bygetComponent(int i)
JPopupMenu.getComponentAtIndex
(int i) Deprecated.replaced byContainer.getComponent(int)
staticKeyStroke
KeyStroke.getKeyStroke
(char keyChar, boolean onKeyRelease) Deprecated.use getKeyStroke(char)AbstractButton.getLabel()
Deprecated.- Replaced bygetText
JInternalFrame.getMenuBar()
Deprecated.As of Swing version 1.0.3, replaced bygetJMenuBar()
.JRootPane.getMenuBar()
Deprecated.As of Swing version 1.0.3 replaced bygetJMenuBar()
.JComponent.getNextFocusableComponent()
Deprecated.As of 1.4, replaced byFocusTraversalPolicy
.Object[]
JList.getSelectedValues()
Deprecated.As of JDK 1.7, replaced byJList.getSelectedValuesList()
JPasswordField.getText()
Deprecated.As of Java 2 platform v1.2, replaced bygetPassword
.JPasswordField.getText
(int offs, int len) Deprecated.As of Java 2 platform v1.2, replaced bygetPassword
.ScrollPaneLayout.getViewportBorderBounds
(JScrollPane scrollpane) Deprecated.As of JDK version Swing1.1 replaced byJScrollPane.getViewportBorderBounds()
.finalString
JInternalFrame.getWarningString()
Deprecated, for removal: This API element is subject to removal in a future version.since JDK 24void
JComponent.hide()
Deprecated.boolean
JViewport.isBackingStoreEnabled()
Deprecated.As of Java 2 platform v1.3, replaced bygetScrollMode()
.static boolean
FocusManager.isFocusManagerEnabled()
Deprecated.As of 1.4, replaced byKeyboardFocusManager.getDefaultFocusTraversalPolicy()
boolean
JComponent.isManagingFocus()
Deprecated.As of 1.4, replaced byComponent.setFocusTraversalKeys(int, Set)
andContainer.setFocusCycleRoot(boolean)
.boolean
JComponent.requestDefaultFocus()
Deprecated.As of 1.4, replaced byFocusTraversalPolicy.getDefaultComponent(Container).requestFocus()
void
JComponent.reshape
(int x, int y, int w, int h) Deprecated.As of JDK 5, replaced byComponent.setBounds(int, int, int, int)
.void
JViewport.setBackingStoreEnabled
(boolean enabled) Deprecated.As of Java 2 platform v1.3, replaced bysetScrollMode()
.void
Deprecated.- Replaced bysetText(text)
void
JInternalFrame.setMenuBar
(JMenuBar m) Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar m)
.void
JRootPane.setMenuBar
(JMenuBar menu) Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar menu)
.void
JComponent.setNextFocusableComponent
(Component aComponent) Deprecated.As of 1.4, replaced byFocusTraversalPolicy
boolean
InputVerifier.shouldYieldFocus
(JComponent input) Deprecated.void
JTable.sizeColumnsToFit
(boolean lastColumnOnly) Deprecated.As of Swing version 1.0.3, replaced bydoLayout()
.Uses ofDeprecated injavax.swing.plaf
Methods injavax.swing.plaf with annotations of typeDeprecatedModifier and TypeMethodDescriptionTextUI.getToolTipText
(JTextComponent t,Point pt) Deprecated.abstractRectangle
TextUI.modelToView
(JTextComponent t, int pos) Deprecated.abstractRectangle
TextUI.modelToView
(JTextComponent t, int pos,Position.Bias bias) Deprecated.abstract int
TextUI.viewToModel
(JTextComponent t,Point pt) Deprecated.abstract int
TextUI.viewToModel
(JTextComponent t,Point pt,Position.Bias[] biasReturn) Deprecated.Uses ofDeprecated injavax.swing.plaf.basic
Classes injavax.swing.plaf.basic with annotations of typeDeprecatedModifier and TypeClassDescriptionprotected class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.Fields injavax.swing.plaf.basic with annotations of typeDeprecatedModifier and TypeFieldDescriptionprotectedKeyStroke
BasicDesktopPaneUI.closeKey
Deprecated.As of 1.3.protectedKeyStroke
BasicSplitPaneUI.dividerResizeToggleKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicSplitPaneUI.downKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicTabbedPaneUI.downKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicToolBarUI.downKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicSplitPaneUI.endKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicSplitPaneUI.homeKey
Deprecated.As of Java 2 platform v1.3.protectedActionListener
BasicSplitPaneUI.keyboardDownRightListener
Deprecated.As of Java 2 platform v1.3.protectedActionListener
BasicSplitPaneUI.keyboardEndListener
Deprecated.As of Java 2 platform v1.3.protectedActionListener
BasicSplitPaneUI.keyboardHomeListener
Deprecated.As of Java 2 platform v1.3.protectedActionListener
BasicSplitPaneUI.keyboardResizeToggleListener
Deprecated.As of Java 2 platform v1.3.protectedActionListener
BasicSplitPaneUI.keyboardUpLeftListener
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicSplitPaneUI.leftKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicTabbedPaneUI.leftKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicToolBarUI.leftKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicDesktopPaneUI.maximizeKey
Deprecated.As of 1.3.protectedKeyStroke
BasicDesktopPaneUI.minimizeKey
Deprecated.As of 1.3.protectedKeyStroke
BasicDesktopPaneUI.navigateKey
Deprecated.As of 1.3.protectedKeyStroke
BasicDesktopPaneUI.navigateKey2
Deprecated.As of 1.3.protectedKeyStroke
BasicInternalFrameUI.openMenuKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicSplitPaneUI.rightKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicTabbedPaneUI.rightKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicToolBarUI.rightKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicSplitPaneUI.upKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicTabbedPaneUI.upKey
Deprecated.As of Java 2 platform v1.3.protectedKeyStroke
BasicToolBarUI.upKey
Deprecated.As of Java 2 platform v1.3.Methods injavax.swing.plaf.basic with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotectedJFrame
BasicToolBarUI.createFloatingFrame
(JToolBar toolbar) Deprecated, for removal: This API element is subject to removal in a future version.It is recommended thatBasicToolBarUI.createFloatingWindow(JToolBar)
be used insteadprotectedActionListener
BasicSplitPaneUI.createKeyboardDownRightListener()
Deprecated.As of Java 2 platform v1.3.protectedActionListener
BasicSplitPaneUI.createKeyboardEndListener()
Deprecated.As of Java 2 platform v1.3.protectedActionListener
BasicSplitPaneUI.createKeyboardHomeListener()
Deprecated.As of Java 2 platform v1.3.protectedActionListener
BasicSplitPaneUI.createKeyboardResizeToggleListener()
Deprecated.As of Java 2 platform v1.3.protectedActionListener
BasicSplitPaneUI.createKeyboardUpLeftListener()
Deprecated.As of Java 2 platform v1.3.protected int
BasicSplitPaneUI.getDividerBorderSize()
Deprecated.As of Java 2 platform v1.3, instead set the border on the divider.void
BasicDirectoryModel.intervalAdded
(ListDataEvent e) Deprecated, for removal: This API element is subject to removal in a future version.Obsolete method, not used anymore.void
BasicDirectoryModel.intervalRemoved
(ListDataEvent e) Deprecated, for removal: This API element is subject to removal in a future version.Obsolete method, not used anymore.protected boolean
Deprecated, for removal: This API element is subject to removal in a future version.Obsolete method, not used anymore.BasicTextUI.modelToView
(JTextComponent tc, int pos) Deprecated.BasicTextUI.modelToView
(JTextComponent tc, int pos,Position.Bias bias) Deprecated.int
BasicTextUI.viewToModel
(JTextComponent tc,Point pt) Deprecated.int
BasicTextUI.viewToModel
(JTextComponent tc,Point pt,Position.Bias[] biasReturn) Deprecated.Constructors injavax.swing.plaf.basic with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.This constructor was exposed erroneously and will be removed in a future release.Uses ofDeprecated injavax.swing.plaf.metal
Classes injavax.swing.plaf.metal with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.As of Java 2 platform v1.4.protected class
Deprecated.As of JDK version 9.protected class
Deprecated.As of JDK version 9.Methods injavax.swing.plaf.metal with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected void
MetalComboBoxUI.editablePropertyChanged
(PropertyChangeEvent e) Deprecated.As of Java 2 platform v1.4.protected void
MetalComboBoxUI.removeListeners()
Deprecated.As of Java 2 platform v1.4.void
MetalScrollPaneUI.uninstallListeners
(JScrollPane scrollPane) Deprecated.- Replaced byBasicScrollPaneUI.uninstallListeners(JComponent)
Uses ofDeprecated injavax.swing.plaf.multi
Methods injavax.swing.plaf.multi with annotations of typeDeprecatedModifier and TypeMethodDescriptionMultiTextUI.modelToView
(JTextComponent a, int b) Deprecated.MultiTextUI.modelToView
(JTextComponent a, int b,Position.Bias c) Deprecated.int
MultiTextUI.viewToModel
(JTextComponent a,Point b) Deprecated.int
MultiTextUI.viewToModel
(JTextComponent a,Point b,Position.Bias[] c) Deprecated.Uses ofDeprecated injavax.swing.plaf.synth
Methods injavax.swing.plaf.synth with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.Uses ofDeprecated injavax.swing.table
Fields injavax.swing.table with annotations of typeDeprecatedModifier and TypeFieldDescriptionprotected int
TableColumn.resizedPostingDisableCount
Deprecated.as of Java 2 platform v1.3Methods injavax.swing.table with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
TableColumn.disableResizedPosting()
Deprecated.as of Java 2 platform v1.3void
TableColumn.enableResizedPosting()
Deprecated.as of Java 2 platform v1.3Uses ofDeprecated injavax.swing.text
Classes injavax.swing.text with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.class
Deprecated.A table cell can now be any View implementation.Methods injavax.swing.text with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotectedTableView.TableCell
TableView.createTableCell
(Element elem) Deprecated.Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.protected int
PasswordView.drawEchoCharacter
(Graphics g, int x, int y, char c) Deprecated.protected void
Deprecated.protected void
Deprecated.protected int
PasswordView.drawSelectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.protected int
PlainView.drawSelectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.protected int
WrappedPlainView.drawSelectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.static final int
Utilities.drawTabbedText
(Segment s, int x, int y,Graphics g,TabExpander e, int startOffset) Deprecated.protected int
PasswordView.drawUnselectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.protected int
PlainView.drawUnselectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.protected int
WrappedPlainView.drawUnselectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.static final int
Utilities.getBreakLocation
(Segment s,FontMetrics metrics, int x0, int x,TabExpander e, int startOffset) Deprecated.protectedFontMetrics
LabelView.getFontMetrics()
Deprecated.FontMetrics are not used for glyph rendering when running in the JDK.static final int
Utilities.getPositionAbove
(JTextComponent c, int offs, int x) Deprecated.static final int
Utilities.getPositionBelow
(JTextComponent c, int offs, int x) Deprecated.static final int
Utilities.getTabbedTextOffset
(Segment s,FontMetrics metrics, int x0, int x,TabExpander e, int startOffset) static final int
Utilities.getTabbedTextOffset
(Segment s,FontMetrics metrics, int x0, int x,TabExpander e, int startOffset, boolean round) static final int
Utilities.getTabbedTextWidth
(Segment s,FontMetrics metrics, int x,TabExpander e, int startOffset) Deprecated.JTextComponent.modelToView
(int pos) Deprecated.replaced byJTextComponent.modelToView2D(int)
View.modelToView
(int pos,Shape a) Deprecated.int
JTextComponent.viewToModel
(Point pt) Deprecated.replaced byJTextComponent.viewToModel2D(Point2D)
int
View.viewToModel
(float x, float y,Shape a) Deprecated.Uses ofDeprecated injavax.swing.text.html
Fields injavax.swing.text.html with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalString
FormView.RESET
Deprecated.As of 1.3, value comes from UIManager UIManager property FormView.resetButtonTextstatic finalString
FormView.SUBMIT
Deprecated.As of 1.3, value now comes from UIManager property FormView.submitButtonTextMethods injavax.swing.text.html with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected void
HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry
(JEditorPane editor,HTMLDocument doc, int offset,Element insertElement,String html,HTML.Tag parentTag,HTML.Tag addTag) Deprecated.As of Java 2 platform v1.3, use insertAtBoundaryUses ofDeprecated injavax.swing.tree
Methods injavax.swing.tree with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected void
DefaultTreeSelectionModel.notifyPathChange
(Vector<?> changedPaths,TreePath oldLeadSelection) Deprecated.As of JDK version 1.7Uses ofDeprecated injavax.tools
Methods injavax.tools with annotations of typeDeprecatedModifier and TypeMethodDescriptiondefaultIterable
<? extendsJavaFileObject> StandardJavaFileManager.getJavaFileObjectsFromPaths
(Iterable<? extendsPath> paths) Deprecated.useStandardJavaFileManager.getJavaFileObjectsFromPaths(Collection)
instead, to prevent the possibility of accidentally calling the method with a singlePath
as such an argument.staticClassLoader
ToolProvider.getSystemToolClassLoader()
Deprecated.This method is subject to removal in a future version of Java SE.Uses ofDeprecated injavax.xml.stream
Methods injavax.xml.stream with annotations of typeDeprecatedModifier and TypeMethodDescriptionstaticXMLEventFactory
XMLEventFactory.newInstance
(String factoryId,ClassLoader classLoader) Deprecated.This method has been deprecated to maintain API consistency.staticXMLInputFactory
XMLInputFactory.newInstance
(String factoryId,ClassLoader classLoader) Deprecated.This method has been deprecated to maintain API consistency.staticXMLInputFactory
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 ofDeprecated injdk.net
Classes injdk.net with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.Java SE 9 added standard methods to set/get socket options, and retrieve the per-Socket supported options effectively rendering this API redundant.Methods injdk.net with annotations of typeDeprecatedModifier and TypeMethodDescriptionstatic <T> T
Sockets.getOption
(DatagramSocket s,SocketOption<T> name) Deprecated.useDatagramSocket.getOption(SocketOption)
instead.static <T> T
Sockets.getOption
(ServerSocket s,SocketOption<T> name) Deprecated.useServerSocket.getOption(SocketOption)
instead.static <T> T
Sockets.getOption
(Socket s,SocketOption<T> name) Deprecated.useSocket.getOption(SocketOption)
instead.static <T> void
Sockets.setOption
(DatagramSocket s,SocketOption<T> name, T value) Deprecated.useDatagramSocket.setOption(SocketOption, Object)
instead.static <T> void
Sockets.setOption
(ServerSocket s,SocketOption<T> name, T value) Deprecated.useServerSocket.setOption(SocketOption, Object)
instead.static <T> void
Sockets.setOption
(Socket s,SocketOption<T> name, T value) Deprecated.useSocket.setOption(SocketOption, Object)
instead.staticSet
<SocketOption<?>> Sockets.supportedOptions
(Class<?> socketType) Deprecated, for removal: This API element is subject to removal in a future version.Uses ofDeprecated innetscape.javascript
Classes innetscape.javascript with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.The jdk.jsobject module will be delivered with JavaFX.class
Deprecated, for removal: This API element is subject to removal in a future version.The jdk.jsobject module will be delivered with JavaFX.Uses ofDeprecated inorg.ietf.jgss
Methods inorg.ietf.jgss with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoid
GSSContext.acceptSecContext
(InputStream inStream,OutputStream outStream) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.getMIC
(InputStream inStream,OutputStream outStream,MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.int
GSSContext.initSecContext
(InputStream inStream,OutputStream outStream) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.unwrap
(InputStream inStream,OutputStream outStream,MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.verifyMIC
(InputStream tokStream,InputStream msgStream,MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.void
GSSContext.wrap
(InputStream inStream,OutputStream outStream,MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.Uses ofDeprecated inorg.xml.sax
Classes inorg.xml.sax with annotations of typeDeprecatedModifier and TypeInterfaceDescriptioninterface
Deprecated.This interface has been replaced by the SAX2Attributes
interface, which includes Namespace support.interface
Deprecated.This interface has been replaced by the SAX2ContentHandler
interface, which includes Namespace support.class
Deprecated.This class works with the deprecatedDocumentHandler
interface.interface
Deprecated.This interface has been replaced by the SAX2XMLReader
interface, which includes Namespace support.Uses ofDeprecated inorg.xml.sax.helpers
Classes inorg.xml.sax.helpers with annotations of typeDeprecatedModifier and TypeClassDescriptionclass
Deprecated.This class implements a deprecated interface,AttributeList
; that interface has been replaced byAttributes
, which is implemented in theAttributesImpl
helper class.class
Deprecated.This class works with the deprecatedParser
interface.final class
Deprecated.It is recommended to useSAXParserFactory
instead.