Uses of Annotation Interface
java.lang.Deprecated
Packages that useDeprecated
Package
Description
This package comprises the interfaces and classes used to define the signing mechanism used by the
jarsigner tool.Provides a collection of interfaces and classes that compose the Java Accessibility Utilities.
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 the JDK's extension to the standard implementation of the
java.lang.management API and also defines the management interface for some other components of the platform.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 classes for color spaces.
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 for creating and modifying images.
Provides classes and interfaces for producing rendering-independent images.
Contains classes related to developingbeans -- components based on the JavaBeans architecture.
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 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 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.
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.
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.
The RMI connector is a connector for the JMX Remote API that uses RMI to transmit client requests to a remote MBean server.
Provides the classes and interfaces for accessing naming services.
Extends the
javax.naming package to provide functionalityfor accessing directory services.Provides classes for the secure socket package.
This package provides a framework for authentication and authorization.
Provides classes for public key certificates.
Standard interfaces and base classes for JDBC
RowSet implementations.Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel (once codenamedMetal), which is the default look and feel.
Provides user interface objects that combine two or more look and feels.
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.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.jarsigner
Classes incom.sun.jarsigner with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.This class has been deprecated.interfaceDeprecated, for removal: This API element is subject to removal in a future version.This class has been deprecated.Uses ofDeprecated incom.sun.java.accessibility.util
Fields incom.sun.java.accessibility.util with annotations of typeDeprecatedModifier and TypeFieldDescriptionprotected staticActionListenerAWTEventMonitor.actionListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticAdjustmentListenerAWTEventMonitor.adjustmentListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticComponentListenerAWTEventMonitor.componentListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticComponentAWTEventMonitor.componentWithFocusDeprecated, for removal: This API element is subject to removal in a future version.This field is unused; to get the component with focus use the getComponentWithFocus method.protected staticContainerListenerAWTEventMonitor.containerListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticFocusListenerAWTEventMonitor.focusListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticItemListenerAWTEventMonitor.itemListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticKeyListenerAWTEventMonitor.keyListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticMouseListenerAWTEventMonitor.mouseListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticMouseMotionListenerAWTEventMonitor.mouseMotionListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticTextListenerAWTEventMonitor.textListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.protected staticWindowListenerAWTEventMonitor.windowListenerDeprecated, for removal: This API element is subject to removal in a future version.This field is unused.Uses ofDeprecated incom.sun.jdi
Classes incom.sun.jdi with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated.This exception is no longer thrownclassDeprecated.This exception is no longer thrownMethods incom.sun.jdi with annotations of typeDeprecatedModifier and TypeMethodDescriptionbooleanVirtualMachine.canAddMethod()Deprecated.A JVM TI based JDWP back-end will never set this capability to true.booleanVirtualMachine.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 longOperatingSystemMXBean.getFreePhysicalMemorySize()Deprecated.UseOperatingSystemMXBean.getFreeMemorySize()instead of this historically named method.default doubleOperatingSystemMXBean.getSystemCpuLoad()Deprecated.UseOperatingSystemMXBean.getCpuLoad()instead of this historically named method.default longOperatingSystemMXBean.getTotalPhysicalMemorySize()Deprecated.UseOperatingSystemMXBean.getTotalMemorySize()instead of this historically named method.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 TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.interfaceDeprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.interfaceDeprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.interfaceDeprecated, 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 TypeClassDescriptionclassDeprecated.It is recommended thatAWTEventand its subclasses be used insteadFields injava.awt with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final intFrame.CROSSHAIR_CURSORDeprecated.replaced byCursor.CROSSHAIR_CURSOR.static final intFrame.DEFAULT_CURSORDeprecated.replaced byCursor.DEFAULT_CURSOR.static final intFrame.E_RESIZE_CURSORDeprecated.replaced byCursor.E_RESIZE_CURSOR.static final intFrame.HAND_CURSORDeprecated.replaced byCursor.HAND_CURSOR.static final intFrame.MOVE_CURSORDeprecated.replaced byCursor.MOVE_CURSOR.static final intFrame.N_RESIZE_CURSORDeprecated.replaced byCursor.N_RESIZE_CURSOR.static final intFrame.NE_RESIZE_CURSORDeprecated.replaced byCursor.NE_RESIZE_CURSOR.static final intFrame.NW_RESIZE_CURSORDeprecated.replaced byCursor.NW_RESIZE_CURSOR.protected staticCursor[]Cursor.predefinedDeprecated.As of JDK version 1.7, theCursor.getPredefinedCursor(int)method should be used instead.static final intFrame.S_RESIZE_CURSORDeprecated.replaced byCursor.S_RESIZE_CURSOR.static final intFrame.SE_RESIZE_CURSORDeprecated.replaced byCursor.SE_RESIZE_CURSOR.static final intFrame.SW_RESIZE_CURSORDeprecated.replaced byCursor.SW_RESIZE_CURSOR.static final intFrame.TEXT_CURSORDeprecated.replaced byCursor.TEXT_CURSOR.static final intFrame.W_RESIZE_CURSORDeprecated.replaced byCursor.W_RESIZE_CURSOR.static final intFrame.WAIT_CURSORDeprecated.replaced byCursor.WAIT_CURSOR.Methods injava.awt with annotations of typeDeprecatedModifier and TypeMethodDescriptionbooleanDeprecated.As of JDK version 1.1, should register this component as ActionListener on component which fires action events.voidDeprecated.replaced byadd(String).voidDeprecated.replaced byadd(String, int).voidBorderLayout.addLayoutComponent(String name,Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object).voidCardLayout.addLayoutComponent(String name,Component comp) Deprecated.replaced byaddLayoutComponent(Component, Object).booleanList.allowsMultipleSelections()Deprecated.As of JDK version 1.1, replaced byisMultipleMode().voidTextArea.appendText(String str) Deprecated.As of JDK version 1.1, replaced byappend(String).voidWindow.applyResourceBundle(String rbName) Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation.voidWindow.applyResourceBundle(ResourceBundle rb) Deprecated.As of J2SE 1.4, replaced byComponent.applyComponentOrientation.Component.bounds()Deprecated.As of JDK version 1.1, replaced bygetBounds().voidList.clear()Deprecated.As of JDK version 1.1, replaced byremoveAll().intContainer.countComponents()Deprecated.As of JDK version 1.1, replaced by getComponentCount().intChoice.countItems()Deprecated.As of JDK version 1.1, replaced bygetItemCount().intList.countItems()Deprecated.As of JDK version 1.1, replaced bygetItemCount().intMenu.countItems()Deprecated.As of JDK version 1.1, replaced bygetItemCount().intMenuBar.countMenus()Deprecated.As of JDK version 1.1, replaced bygetMenuCount().voidList.delItem(int position) Deprecated.replaced byremove(String)andremove(int).voidList.delItems(int start, int end) Deprecated.As of JDK version 1.1, Not for public use in the future.voidComponent.deliverEvent(Event e) Deprecated.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e).voidContainer.deliverEvent(Event e) Deprecated.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)voidComponent.disable()Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidMenuItem.disable()Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidComponent.enable()Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidComponent.enable(boolean b) Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidMenuItem.enable()Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidMenuItem.enable(boolean b) Deprecated.As of JDK version 1.1, replaced bysetEnabled(boolean).voidGraphics.finalize()Deprecated.Thefinalizemethod has been deprecated.voidPrintJob.finalize()Deprecated.Thefinalizemethod has been deprecated.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().intFrame.getCursorType()Deprecated.As of JDK version 1.1, replaced byComponent.getCursor().abstractString[]Toolkit.getFontList()Deprecated.abstractFontMetricsToolkit.getFontMetrics(Font font) Deprecated.As of JDK version 1.2, replaced by theFontmethodgetLineMetrics.intScrollbar.getLineIncrement()Deprecated.As of JDK version 1.1, replaced bygetUnitIncrement().intFontMetrics.getMaxDecent()Deprecated.As of JDK version 1.1.1, replaced bygetMaxDescent().intToolkit.getMenuShortcutKeyMask()Deprecated.It is recommended that extended modifier keys andToolkit.getMenuShortcutKeyMaskEx()be used insteadstaticComponentOrientationComponentOrientation.getOrientation(ResourceBundle bdl) Deprecated.As of J2SE 1.4, useComponentOrientation.getOrientation(java.util.Locale).intScrollbar.getPageIncrement()Deprecated.As of JDK version 1.1, replaced bygetBlockIncrement().intScrollbar.getVisible()Deprecated.As of JDK version 1.1, replaced bygetVisibleAmount().booleanDeprecated.As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).booleanComponent.handleEvent(Event evt) Deprecated.As of JDK version 1.1 replaced by processEvent(AWTEvent).voidComponent.hide()Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean).voidDialog.hide()Deprecated.As of JDK version 1.5, replaced bysetVisible(boolean).voidWindow.hide()Deprecated.As of JDK version 1.5, replaced byWindow.setVisible(boolean).voidTextArea.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().booleanComponent.inside(int x, int y) Deprecated.As of JDK version 1.1, replaced by contains(int, int).booleanPolygon.inside(int x, int y) Deprecated.As of JDK version 1.1, replaced bycontains(int, int).booleanRectangle.inside(int X, int Y) Deprecated.As of JDK version 1.1, replaced bycontains(int, int).booleanComponent.isFocusTraversable()Deprecated.As of 1.4, replaced byisFocusable().booleanList.isSelected(int index) Deprecated.As of JDK version 1.1, replaced byisIndexSelected(int).booleanDeprecated.As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).booleanDeprecated.As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).voidComponent.layout()Deprecated.As of JDK version 1.1, replaced bydoLayout().voidContainer.layout()Deprecated.As of JDK version 1.1, replaced bydoLayout().voidScrollPane.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().booleanDeprecated.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).booleanDeprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).booleanDeprecated.As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).booleanComponent.mouseEnter(Event evt, int x, int y) Deprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).booleanDeprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).booleanDeprecated.As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).booleanDeprecated.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).voidComponent.move(int x, int y) Deprecated.As of JDK version 1.1, replaced bysetLocation(int, int).voidRectangle.move(int x, int y) Deprecated.As of JDK version 1.1, replaced bysetLocation(int, int).voidComponent.nextFocus()Deprecated.As of JDK version 1.1, replaced by transferFocus().booleanDeprecated.As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).booleanDeprecated.As of JDK version 1.1, replaced bydispatchEvent.booleanDeprecated.As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).booleanDeprecated.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 voidAWTKeyStroke.registerSubclass(Class<?> subclass) Deprecated.voidTextArea.replaceText(String str, int start, int end) Deprecated.As of JDK version 1.1, replaced byreplaceRange(String, int, int).voidComponent.reshape(int x, int y, int width, int height) Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int).voidRectangle.reshape(int x, int y, int width, int height) Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int).voidWindow.reshape(int x, int y, int width, int height) Deprecated.As of JDK version 1.1, replaced bysetBounds(int, int, int, int).voidComponent.resize(int width, int height) Deprecated.As of JDK version 1.1, replaced bysetSize(int, int).voidDeprecated.As of JDK version 1.1, replaced bysetSize(Dimension).voidRectangle.resize(int width, int height) Deprecated.As of JDK version 1.1, replaced bysetSize(int, int).voidCheckboxGroup.setCurrent(Checkbox box) Deprecated.As of JDK version 1.1, replaced bysetSelectedCheckbox(Checkbox).voidFrame.setCursor(int cursorType) Deprecated.As of JDK version 1.1, replaced byComponent.setCursor(Cursor).voidTextField.setEchoCharacter(char c) Deprecated.As of JDK version 1.1, replaced bysetEchoChar(char).voidScrollbar.setLineIncrement(int v) Deprecated.As of JDK version 1.1, replaced bysetUnitIncrement(int).voidList.setMultipleSelections(boolean b) Deprecated.As of JDK version 1.1, replaced bysetMultipleMode(boolean).voidScrollbar.setPageIncrement(int v) Deprecated.As of JDK version 1.1, replaced bysetBlockIncrement().voidComponent.show()Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean).voidComponent.show(boolean b) Deprecated.As of JDK version 1.1, replaced bysetVisible(boolean).voidDialog.show()Deprecated.As of JDK version 1.5, replaced bysetVisible(boolean).voidWindow.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.color
Methods injava.awt.color with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected voidICC_Profile.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Thefinalizemethod has been deprecated.Uses ofDeprecated injava.awt.datatransfer
Fields injava.awt.datatransfer with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalDataFlavorDataFlavor.plainTextFlavorDeprecated.as of 1.3.Methods injava.awt.datatransfer with annotations of typeDeprecatedModifier and TypeMethodDescriptionbooleanDeprecated.As inconsistent withhashCode()contract, useDataFlavor.isMimeTypeEqual(String)instead.protectedStringDataFlavor.normalizeMimeType(String mimeType) Deprecated.This method is never invoked by this implementation from 1.1 onwardsprotectedStringDataFlavor.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 intInputEvent.ALT_GRAPH_MASKDeprecated.It is recommended that ALT_GRAPH_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic final intInputEvent.ALT_MASKDeprecated.It is recommended that ALT_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic final intInputEvent.BUTTON1_MASKDeprecated.It is recommended that BUTTON1_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic final intInputEvent.BUTTON2_MASKDeprecated.It is recommended that BUTTON2_DOWN_MASK andInputEvent.getModifiersEx()be used instead.static final intInputEvent.BUTTON3_MASKDeprecated.It is recommended that BUTTON3_DOWN_MASK andInputEvent.getModifiersEx()be used instead.static final intInputEvent.CTRL_MASKDeprecated.It is recommended that CTRL_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic final intInputEvent.META_MASKDeprecated.It is recommended that META_DOWN_MASK andInputEvent.getModifiersEx()be used insteadstatic final intInputEvent.SHIFT_MASKDeprecated.It is recommended that SHIFT_DOWN_MASK andInputEvent.getModifiersEx()be used insteadMethods injava.awt.event with annotations of typeDeprecatedModifier and TypeMethodDescriptionstaticStringKeyEvent.getKeyModifiersText(int modifiers) Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersExText(int)be used insteadintInputEvent.getModifiers()Deprecated.It is recommended that extended modifier keys andInputEvent.getModifiersEx()be used insteadvoidKeyEvent.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
Methods injava.awt.image with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidColorModel.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Thefinalizemethod has been deprecated.voidIndexColorModel.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Thefinalizemethod has been deprecated.Uses ofDeprecated injava.awt.image.renderable
Methods injava.awt.image.renderable with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidRenderContext.concetenateTransform(AffineTransform modTransform) Deprecated.replaced byconcatenateTransform(AffineTransform).voidRenderContext.preConcetenateTransform(AffineTransform modTransform) Deprecated.replaced bypreConcatenateTransform(AffineTransform).Uses ofDeprecated injava.beans
Classes injava.beans with annotations of typeDeprecatedModifier and TypeInterfaceDescriptioninterfaceDeprecated, 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 TypeMethodDescriptionstaticObjectBeans.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.io
Classes injava.io with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated.This class incorrectly assumes that bytes adequately represent characters.classDeprecated.This class does not properly convert characters into bytes.Fields injava.io with annotations of typeDeprecatedModifier and TypeFieldDescriptionWriteAbortedException.detailDeprecated.This field predates the general-purpose exception chaining facility.Methods injava.io with annotations of typeDeprecatedModifier and TypeMethodDescriptionfinalStringDataInputStream.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 voidObjectOutputStream.PutField.write(ObjectOutput out) Deprecated.This method does not write the values contained by thisPutFieldobject 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:Uses ofDeprecated injava.lang
Classes injava.lang with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.JIT compilers and their technologies vary too widely to be controlled effectively by a standardized interface.classDeprecated, for removal: This API element is subject to removal in a future version.The Security Manager is deprecated and subject to removal in a future release.Fields injava.lang with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalCharacter.UnicodeBlockCharacter.UnicodeBlock.SURROGATES_AREADeprecated.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 TypeMethodDescriptionbooleanThreadGroup.allowThreadSuspension(boolean b) Deprecated, for removal: This API element is subject to removal in a future version.The definition of this call depends onThreadGroup.suspend(), which is deprecated.final voidThread.checkAccess()Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.final voidThreadGroup.checkAccess()Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.voidSecurityManager.checkMulticast(InetAddress maddr, byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.intThread.countStackFrames()Deprecated, for removal: This API element is subject to removal in a future version.This method was originally designed to count the number of stack frames but the results were never well-defined and it depended on thread-suspension.protected finalClass<?>ClassLoader.defineClass(byte[] b, int off, int len) Deprecated.Replaced bydefineClass(String, byte[], int, int)final voidThreadGroup.destroy()Deprecated, for removal: This API element is subject to removal in a future version.The API and mechanism for destroying a ThreadGroup is inherently flawed.protected voidObject.finalize()Deprecated.The finalization mechanism is inherently problematic.voidString.getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) Deprecated.This method does not properly convert characters into bytes.protectedPackageClassLoader.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 ofgetPackageto return aPackagefrom a parent loader, then the properties exposed by thePackagemay not be as expected in the rest of the program.staticPackagePackage.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 ofgetPackageto return aPackagefrom a parent loader, then the properties exposed by thePackagemay not be as expected in the rest of the program.staticSecurityManagerSystem.getSecurityManager()Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.final booleanThreadGroup.isDaemon()Deprecated, for removal: This API element is subject to removal in a future version.The API and mechanism for destroying a ThreadGroup is inherently flawed.booleanThreadGroup.isDestroyed()Deprecated, for removal: This API element is subject to removal in a future version.The API and mechanism for destroying a ThreadGroup is inherently flawed.static booleanCharacter.isJavaLetter(char ch) Deprecated.Replaced by isJavaIdentifierStart(char).static booleanCharacter.isJavaLetterOrDigit(char ch) Deprecated.Replaced by isJavaIdentifierPart(char).static booleanCharacter.isSpace(char ch) Deprecated.Replaced by isWhitespace(char).intRuntime.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.intRuntime.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.final voidThread.resume()Deprecated, for removal: This API element is subject to removal in a future version.This method exists solely for use withThread.suspend(), which has been deprecated because it is deadlock-prone.final voidThreadGroup.resume()Deprecated, for removal: This API element is subject to removal in a future version.This method is used solely in conjunction withThread.suspendandThreadGroup.suspend, both of which have been deprecated, as they are inherently deadlock-prone.intRuntime.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 voidThreadGroup.setDaemon(boolean daemon) Deprecated, for removal: This API element is subject to removal in a future version.The API and mechanism for destroying a ThreadGroup is inherently flawed.static voidSystem.setSecurityManager(SecurityManager sm) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.final voidThread.stop()Deprecated.This method is inherently unsafe.final voidThreadGroup.stop()Deprecated, for removal: This API element is subject to removal in a future version.This method is inherently unsafe.final voidThread.suspend()Deprecated, for removal: This API element is subject to removal in a future version.This method has been deprecated, as it is inherently deadlock-prone.final voidThreadGroup.suspend()Deprecated, for removal: This API element is subject to removal in a future version.This method is inherently deadlock-prone.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 TypeMethodDescriptionbooleanMethodHandles.Lookup.hasPrivateAccess()Deprecated.This method was originally designed to testPRIVATEaccess that implies full privilege access butMODULEaccess has since become independent ofPRIVATEaccess.Uses ofDeprecated injava.lang.ref
Methods injava.lang.ref with annotations of typeDeprecatedModifier and TypeMethodDescriptionbooleanReference.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.booleanAccessibleObject.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 intBigDecimal.ROUND_CEILINGDeprecated.UseRoundingMode.CEILINGinstead.static final intBigDecimal.ROUND_DOWNDeprecated.UseRoundingMode.DOWNinstead.static final intBigDecimal.ROUND_FLOORDeprecated.UseRoundingMode.FLOORinstead.static final intBigDecimal.ROUND_HALF_DOWNDeprecated.UseRoundingMode.HALF_DOWNinstead.static final intBigDecimal.ROUND_HALF_EVENDeprecated.UseRoundingMode.HALF_EVENinstead.static final intBigDecimal.ROUND_HALF_UPDeprecated.UseRoundingMode.HALF_UPinstead.static final intBigDecimal.ROUND_UNNECESSARYDeprecated.UseRoundingMode.UNNECESSARYinstead.static final intBigDecimal.ROUND_UPDeprecated.UseRoundingMode.UPinstead.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 intHttpURLConnection.HTTP_SERVER_ERRORDeprecated.it is misplaced and shouldn't have existed.Methods injava.net with annotations of typeDeprecatedModifier and TypeMethodDescriptionstaticStringDeprecated.The resulting string may vary depending on the platform's default encoding.staticStringDeprecated.The resulting string may vary depending on the platform's default encoding.staticStringURLConnection.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.booleanMulticastSocket.getLoopbackMode()Deprecated.protected abstract byteDatagramSocketImpl.getTTL()Deprecated.use getTimeToLive instead.byteMulticastSocket.getTTL()Deprecated.use theMulticastSocket.getTimeToLive()method instead, which returns anint instead of abyte.voidMulticastSocket.joinGroup(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to join the multicast group.voidMulticastSocket.leaveGroup(InetAddress mcastaddr) Deprecated.This method does not accept the network interface on which to leave the multicast group.voidMulticastSocket.send(DatagramPacket p, byte ttl) Deprecated.Use the following code or its equivalent instead:static voidDatagramSocket.setDatagramSocketImplFactory(DatagramSocketImplFactory fac) Deprecated.UseDatagramChannel, or subclassDatagramSocketdirectly.static voidURLConnection.setDefaultRequestProperty(String key,String value) Deprecated.The instance specific setRequestProperty method should be used after an appropriate instance of URLConnection is obtained.voidMulticastSocket.setInterface(InetAddress inf) Deprecated.The InetAddress may not uniquely identify the network interface.voidMulticastSocket.setLoopbackMode(boolean disable) Deprecated.static voidServerSocket.setSocketFactory(SocketImplFactory fac) Deprecated.Use aServerSocketFactoryand subclassServerSocketdirectly.static voidSocket.setSocketImplFactory(SocketImplFactory fac) Deprecated.Use aSocketFactoryand subclassSocketdirectly.protected abstract voidDatagramSocketImpl.setTTL(byte ttl) Deprecated.use setTimeToLive instead.voidMulticastSocket.setTTL(byte ttl) Deprecated.use theMulticastSocket.setTimeToLive(int)method instead, which usesint instead ofbyte as the type for ttl.protected voidDeprecated.Use setURL(URL, String, String, int, String, String, String, String);Constructors injava.net with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated.Use DatagramSocket instead for UDP transport.Socket(InetAddress host, int port, boolean stream) Deprecated.Use DatagramSocket instead for UDP transport.Uses ofDeprecated injava.rmi
Classes injava.rmi with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated.UseSecurityExceptioninstead.classDeprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.classDeprecated.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 TypeInterfaceDescriptioninterfaceDeprecated.no replacementclassDeprecated.no replacementclassDeprecated.no replacementinterfaceDeprecated.no replacement.classDeprecated.Statically generated stubs are deprecated, since stubs are generated dynamically.interfaceDeprecated.No replacement.interfaceDeprecated.no replacement.classDeprecated.no replacement.classDeprecated.no replacement.classDeprecated.This class is obsolete.Fields injava.rmi.server with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final longRemoteRef.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longServerRef.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.Methods injava.rmi.server with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidSkeleton.dispatch(Remote obj,RemoteCall theCall, int opnum, long hash) Deprecated.no replacementvoidRemoteCall.done()Deprecated.no replacementvoidRemoteRef.done(RemoteCall call) Deprecated.1.2 style stubs no longer use this method.voidRemoteCall.executeCall()Deprecated.no replacementstaticRemoteStubUnicastRemoteObject.exportObject(Remote obj) Deprecated.This method is deprecated because it supports only static stubs.staticPrintStreamLogStream.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 replacementstaticObjectRMIClassLoader.getSecurityContext(ClassLoader loader) Deprecated.no replacement.voidRemoteRef.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)methodstaticLogStreamDeprecated.no replacementRemoteRef.newCall(RemoteObject obj,Operation[] op, int opnum, long hash) Deprecated.1.2 style stubs no longer use this method.static intLogStream.parseLevel(String s) Deprecated.no replacementvoidRemoteCall.releaseInputStream()Deprecated.no replacementvoidRemoteCall.releaseOutputStream()Deprecated.no replacementstatic voidLogStream.setDefaultStream(PrintStream newDefault) Deprecated.no replacementvoidLogStream.setOutputStream(OutputStream out) Deprecated.no replacementprotected static voidRemoteStub.setRef(RemoteStub stub,RemoteRef ref) Deprecated.No replacement.LogStream.toString()Deprecated.no replacementOperation.toString()Deprecated.no replacementvoidLogStream.write(byte[] b, int off, int len) Deprecated.no replacementvoidLogStream.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 classDeprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.classDeprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.final classDeprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.interfaceDeprecated, 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.interfaceDeprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.classDeprecated, 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.classDeprecated, 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.classDeprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.static interfaceDeprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.classDeprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.classDeprecated, 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 longKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longPrivateKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.Methods injava.security with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected abstractObjectSignatureSpi.engineGetParameter(String param) Deprecated.protected abstract voidSignatureSpi.engineSetParameter(String param,Object value) Deprecated.Replaced byengineSetParameter.staticStringSecurity.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.finalObjectSignature.getParameter(String param) Deprecated.doubleProvider.getVersion()Deprecated.useProvider.getVersionStr()instead.final voidSignature.setParameter(String param,Object value) Deprecated.UsesetParameter.Constructors injava.security with annotations of typeDeprecatedModifierConstructorDescriptionprotectedAuthProvider(String name, double version,String info) Deprecated.useAuthProvider(String, String, String)instead.protectedDeprecated.useProvider(String, String, String)instead.Uses ofDeprecated injava.security.cert
Methods injava.security.cert with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidX509CRLSelector.addIssuerName(String name) Deprecated.X509CertSelector.getIssuerAsString()Deprecated.abstractPrincipalX509Certificate.getIssuerDN()Deprecated.UseX509Certificate.getIssuerX500Principal()instead.abstractPrincipalX509CRL.getIssuerDN()Deprecated.UseX509CRL.getIssuerX500Principal()instead.X509CertSelector.getSubjectAsString()Deprecated.abstractPrincipalX509Certificate.getSubjectDN()Deprecated.UseX509Certificate.getSubjectX500Principal()instead.voidDeprecated.voidX509CertSelector.setSubject(String subjectDN) Deprecated.Uses ofDeprecated injava.security.interfaces
Fields injava.security.interfaces with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final longDSAPrivateKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longDSAPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longECPrivateKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longECPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longRSAMultiPrimePrivateCrtKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longRSAPrivateCrtKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longRSAPrivateKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longRSAPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.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)intTime.getDate()Deprecated.intTime.getDay()Deprecated.intDate.getHours()Deprecated.staticPrintStreamDriverManager.getLogStream()Deprecated.UsegetLogWriterintDate.getMinutes()Deprecated.intTime.getMonth()Deprecated.intDate.getSeconds()Deprecated.ResultSet.getUnicodeStream(int columnIndex) Deprecated.usegetCharacterStreamin place ofgetUnicodeStreamResultSet.getUnicodeStream(String columnLabel) Deprecated.usegetCharacterStreaminsteadintTime.getYear()Deprecated.voidTime.setDate(int i) Deprecated.voidDate.setHours(int i) Deprecated.static voidDriverManager.setLogStream(PrintStream out) Deprecated.UsesetLogWritervoidDate.setMinutes(int i) Deprecated.voidTime.setMonth(int i) Deprecated.voidDate.setSeconds(int i) Deprecated.voidPreparedStatement.setUnicodeStream(int parameterIndex,InputStream x, int length) Deprecated.UsesetCharacterStreamvoidTime.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 TypeClassDescriptionclassDeprecated.This class and theObserverinterface have been deprecated.interfaceDeprecated.This interface has been deprecated.Methods injava.util with annotations of typeDeprecatedModifier and TypeMethodDescriptionintDate.getDate()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_MONTH).intDate.getDay()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.DAY_OF_WEEK).intDate.getHours()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.HOUR_OF_DAY).intDate.getMinutes()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.MINUTE).intDate.getMonth()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.MONTH).intDate.getSeconds()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.SECOND).intDate.getTimezoneOffset()Deprecated.As of JDK version 1.1, replaced by-(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000).intDate.getYear()Deprecated.As of JDK version 1.1, replaced byCalendar.get(Calendar.YEAR) - 1900.static longDeprecated.As of JDK version 1.1, replaced byDateFormat.parse(String s).voidProperties.save(OutputStream out,String comments) Deprecated.This method does not throw an IOException if an I/O error occurs while saving the property list.voidDate.setDate(int date) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.DAY_OF_MONTH, int date).voidDate.setHours(int hours) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.HOUR_OF_DAY, int hours).voidDate.setMinutes(int minutes) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.MINUTE, int minutes).voidDate.setMonth(int month) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.MONTH, int month).voidDate.setSeconds(int seconds) Deprecated.As of JDK version 1.1, replaced byCalendar.set(Calendar.SECOND, int seconds).voidDate.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 longDate.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).Uses ofDeprecated injava.util.concurrent
Methods injava.util.concurrent with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected voidThreadPoolExecutor.finalize()Deprecated.static <T> Callable<T>Executors.privilegedCallable(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.static <T> Callable<T>Executors.privilegedCallableUsingCurrentClassLoader(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.staticThreadFactoryExecutors.privilegedThreadFactory()Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.Uses ofDeprecated injava.util.concurrent.atomic
Methods injava.util.concurrent.atomic with annotations of typeDeprecatedModifier and TypeMethodDescriptionbooleanAtomicBoolean.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 booleanAtomicInteger.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 booleanAtomicIntegerArray.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 booleanAtomicLong.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 booleanAtomicLongArray.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 booleanAtomicReference.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 booleanAtomicReferenceArray.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.NameAttributes.Name.EXTENSION_INSTALLATIONDeprecated.Extension mechanism is no longer supported.static finalAttributes.NameAttributes.Name.IMPLEMENTATION_URLDeprecated.Extension mechanism is no longer supported.static finalAttributes.NameAttributes.Name.IMPLEMENTATION_VENDOR_IDDeprecated.Extension mechanism is no longer supported.Uses ofDeprecated injava.util.logging
Classes injava.util.logging with annotations of typeDeprecatedModifier and TypeInterfaceDescriptioninterfaceDeprecated.Fields injava.util.logging with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalLoggerLogger.globalDeprecated.Initialization of this field is prone to deadlocks.Methods injava.util.logging with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidLogManager.checkAccess()Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.staticLoggingMXBeanLogManager.getLoggingMXBean()Deprecated.java.util.logging.LoggingMXBeanis deprecated and replaced withjava.lang.management.PlatformLoggingMXBean.intLogRecord.getThreadID()Deprecated.Values returned by this method may be synthesized, and may not correspond to the actualthread id, useLogRecord.getLongThreadID()instead.voidvoidLogger.logrb(Level level,String sourceClass,String sourceMethod,String bundleName,String msg,Object param1) voidLogger.logrb(Level level,String sourceClass,String sourceMethod,String bundleName,String msg,Object[] params) voidLogger.logrb(Level level,String sourceClass,String sourceMethod,String bundleName,String msg,Throwable thrown) voidLogRecord.setMillis(long millis) Deprecated.LogRecord maintains timestamps with nanosecond resolution, usingInstantvalues.voidLogRecord.setThreadID(int threadID) Deprecated.This method doesn't allow to pass a longthread id, useLogRecord.setLongThreadID(long)instead.Uses ofDeprecated injavax.accessibility
Classes injavax.accessibility with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated.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 longSecretKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.Uses ofDeprecated injavax.crypto.interfaces
Fields injavax.crypto.interfaces with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final longDHPrivateKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longDHPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.static final longPBEKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.Uses ofDeprecated injavax.imageio.spi
Fields injavax.imageio.spi with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalClass<?>[]ImageReaderSpi.STANDARD_INPUT_TYPEDeprecated.Instead of using this field, directly create the equivalent array{ ImageInputStream.class }.static finalClass<?>[]ImageWriterSpi.STANDARD_OUTPUT_TYPEDeprecated.Instead of using this field, directly create the equivalent array{ ImageOutputStream.class }.Methods injavax.imageio.spi with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidServiceRegistry.finalize()Deprecated.Thefinalizemethod has been deprecated.Uses ofDeprecated injavax.imageio.stream
Methods injavax.imageio.stream with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected voidFileCacheImageInputStream.finalize()Deprecated.Thefinalizemethod has been deprecated.protected voidFileImageInputStream.finalize()Deprecated.Thefinalizemethod has been deprecated.protected voidFileImageOutputStream.finalize()Deprecated.Thefinalizemethod has been deprecated.protected voidImageInputStreamImpl.finalize()Deprecated.Thefinalizemethod has been deprecated.protected voidMemoryCacheImageInputStream.finalize()Deprecated.Thefinalizemethod has been deprecated.Uses ofDeprecated injavax.lang.model.util
Constructors injavax.lang.model.util with annotations of typeDeprecatedModifierConstructorDescriptionprotectedDeprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedElementKindVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedElementKindVisitor7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedElementScanner6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedElementScanner7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedSimpleAnnotationValueVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedSimpleAnnotationValueVisitor7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedSimpleElementVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedSimpleElementVisitor7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedSimpleTypeVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedSimpleTypeVisitor7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedTypeKindVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newer release level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newer release level.protectedTypeKindVisitor7(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 TypeClassDescriptionclassDeprecated.UseMBeanServer.getClassLoaderRepository()instead.Methods injavax.management with annotations of typeDeprecatedModifier and TypeMethodDescriptiondefaultObjectInputStreamMBeanServer.deserialize(String className, byte[] data) Deprecated.UseMBeanServer.getClassLoaderRepository()to obtain the class loader repository and use it to deserialize.defaultObjectInputStreamMBeanServer.deserialize(String className,ObjectName loaderName, byte[] data) Deprecated.UsegetClassLoaderto obtain the class loader for deserialization.defaultObjectInputStreamMBeanServer.deserialize(ObjectName name, byte[] data) Deprecated.UsegetClassLoaderForto obtain the appropriate class loader for deserialization.voidAttributeValueExp.setMBeanServer(MBeanServer s) Deprecated.This method has no effect.voidStringValueExp.setMBeanServer(MBeanServer s) Deprecated.voidValueExp.setMBeanServer(MBeanServer s) Deprecated.This method is not needed because aValueExpcan 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 TypeClassDescriptionclassDeprecated.UseMBeanServer.getClassLoaderRepository()instead.Uses ofDeprecated injavax.management.monitor
Fields injavax.management.monitor with annotations of typeDeprecatedModifier and TypeFieldDescriptionprotected intMonitor.alreadyNotifiedDeprecated.equivalent toMonitor.alreadyNotifieds[0].protectedStringMonitor.dbgTagDeprecated.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)longCounterMonitor.getDerivedGaugeTimeStamp()Deprecated.As of JMX 1.2, replaced byCounterMonitor.getDerivedGaugeTimeStamp(ObjectName)longCounterMonitorMBean.getDerivedGaugeTimeStamp()Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)longGaugeMonitor.getDerivedGaugeTimeStamp()Deprecated.As of JMX 1.2, replaced byGaugeMonitor.getDerivedGaugeTimeStamp(ObjectName)longGaugeMonitorMBean.getDerivedGaugeTimeStamp()Deprecated.As of JMX 1.2, replaced byGaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName)longStringMonitor.getDerivedGaugeTimeStamp()Deprecated.As of JMX 1.2, replaced byStringMonitor.getDerivedGaugeTimeStamp(ObjectName)longStringMonitorMBean.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)voidMonitor.setObservedObject(ObjectName object) Deprecated.As of JMX 1.2, replaced byMonitor.addObservedObject(javax.management.ObjectName)voidMonitorMBean.setObservedObject(ObjectName object) Deprecated.As of JMX 1.2, replaced byMonitorMBean.addObservedObject(javax.management.ObjectName)voidCounterMonitor.setThreshold(Number value) Deprecated.As of JMX 1.2, replaced byCounterMonitor.setInitThreshold(java.lang.Number)voidCounterMonitorMBean.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_CLASSNAMESDeprecated.UseALLOWED_CLASSNAMES_LISTinstead.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.rmi
Classes injavax.management.remote.rmi with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated.This transport is no longer supported.Uses ofDeprecated injavax.naming
Fields injavax.naming with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalStringContext.APPLETDeprecated, for removal: This API element is subject to removal in a future version.An environment property with this name is ignored while constructing an initial context.static final longName.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface is ineffectual.Uses ofDeprecated injavax.naming.directory
Fields injavax.naming.directory with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final longAttribute.serialVersionUIDDeprecated.AserialVersionUIDfield 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.Certificateshould 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.Certificateshould be used instead.Uses ofDeprecated injavax.security.auth
Classes injavax.security.auth with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.This class is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.Methods injavax.security.auth with annotations of typeDeprecatedModifier and TypeMethodDescriptionstatic <T> TSubject.doAsPrivileged(Subject subject,PrivilegedAction<T> action,AccessControlContext acc) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.static <T> TSubject.doAsPrivileged(Subject subject,PrivilegedExceptionAction<T> action,AccessControlContext acc) Deprecated, for removal: This API element is subject to removal in a future version.This method is only useful in conjunction withthe Security Manager, which is deprecated and subject to removal in a future release.staticSubjectSubject.getSubject(AccessControlContext acc) Deprecated, for removal: This API element is subject to removal in a future version.This method depends onAccessControlContextwhich, in conjunction withthe Security Manager, is deprecated and subject to removal in a future release.Uses ofDeprecated injavax.security.cert
Classes injavax.security.cert with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Use the classes injava.security.certinstead.Uses ofDeprecated injavax.sql.rowset
Fields injavax.sql.rowset with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final booleanCachedRowSet.COMMIT_ON_ACCEPT_CHANGESDeprecated.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 TypeMethodDescriptionvoidBaseRowSet.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 TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.protected classDeprecated.This class is no longer used or needed.Fields injavax.swing with annotations of typeDeprecatedModifier and TypeFieldDescriptionprotectedFocusListenerJComponent.AccessibleJComponent.accessibleFocusHandlerDeprecated.protected booleanJViewport.backingStoreDeprecated.As of Java 2 platform v1.3protected static finalComponentImageIcon.componentDeprecated.since 1.8protected static finalMediaTrackerImageIcon.trackerDeprecated.since 1.8Methods injavax.swing with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidRepaintManager.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.staticJScrollPaneJTable.createScrollPaneForTable(JTable aTable) Deprecated.As of Swing version 1.0.2, replaced bynew JScrollPane(aTable).voidJComponent.disable()Deprecated.As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean).static voidFocusManager.disableSwingFocusManager()Deprecated.as of 1.4, replaced byKeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy)voidJComponent.enable()Deprecated.As of JDK version 1.1, replaced byjava.awt.Component.setEnabled(boolean).staticComponentSwingUtilities.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)staticKeyStrokeKeyStroke.getKeyStroke(char keyChar, boolean onKeyRelease) Deprecated.use getKeyStroke(char)AbstractButton.getLabel()Deprecated.- Replaced bygetTextJInternalFrame.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().voidJComponent.hide()Deprecated.booleanJViewport.isBackingStoreEnabled()Deprecated.As of Java 2 platform v1.3, replaced bygetScrollMode().static booleanFocusManager.isFocusManagerEnabled()Deprecated.As of 1.4, replaced byKeyboardFocusManager.getDefaultFocusTraversalPolicy()booleanJComponent.isManagingFocus()Deprecated.As of 1.4, replaced byComponent.setFocusTraversalKeys(int, Set)andContainer.setFocusCycleRoot(boolean).booleanJComponent.requestDefaultFocus()Deprecated.As of 1.4, replaced byFocusTraversalPolicy.getDefaultComponent(Container).requestFocus()voidJComponent.reshape(int x, int y, int w, int h) Deprecated.As of JDK 5, replaced byComponent.setBounds(int, int, int, int).voidJViewport.setBackingStoreEnabled(boolean enabled) Deprecated.As of Java 2 platform v1.3, replaced bysetScrollMode().voidDeprecated.- Replaced bysetText(text)voidJInternalFrame.setMenuBar(JMenuBar m) Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar m).voidJRootPane.setMenuBar(JMenuBar menu) Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar menu).voidJComponent.setNextFocusableComponent(Component aComponent) Deprecated.As of 1.4, replaced byFocusTraversalPolicybooleanInputVerifier.shouldYieldFocus(JComponent input) Deprecated.voidJTable.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.abstractRectangleTextUI.modelToView(JTextComponent t, int pos) Deprecated.abstractRectangleTextUI.modelToView(JTextComponent t, int pos,Position.Bias bias) Deprecated.abstract intTextUI.viewToModel(JTextComponent t,Point pt) Deprecated.abstract intTextUI.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 classDeprecated.classDeprecated.classDeprecated.classDeprecated.classDeprecated.Fields injavax.swing.plaf.basic with annotations of typeDeprecatedModifier and TypeFieldDescriptionprotectedKeyStrokeBasicDesktopPaneUI.closeKeyDeprecated.As of 1.3.protectedKeyStrokeBasicSplitPaneUI.dividerResizeToggleKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicSplitPaneUI.downKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicTabbedPaneUI.downKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicToolBarUI.downKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicSplitPaneUI.endKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicSplitPaneUI.homeKeyDeprecated.As of Java 2 platform v1.3.protectedActionListenerBasicSplitPaneUI.keyboardDownRightListenerDeprecated.As of Java 2 platform v1.3.protectedActionListenerBasicSplitPaneUI.keyboardEndListenerDeprecated.As of Java 2 platform v1.3.protectedActionListenerBasicSplitPaneUI.keyboardHomeListenerDeprecated.As of Java 2 platform v1.3.protectedActionListenerBasicSplitPaneUI.keyboardResizeToggleListenerDeprecated.As of Java 2 platform v1.3.protectedActionListenerBasicSplitPaneUI.keyboardUpLeftListenerDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicSplitPaneUI.leftKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicTabbedPaneUI.leftKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicToolBarUI.leftKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicDesktopPaneUI.maximizeKeyDeprecated.As of 1.3.protectedKeyStrokeBasicDesktopPaneUI.minimizeKeyDeprecated.As of 1.3.protectedKeyStrokeBasicDesktopPaneUI.navigateKeyDeprecated.As of 1.3.protectedKeyStrokeBasicDesktopPaneUI.navigateKey2Deprecated.As of 1.3.protectedKeyStrokeBasicInternalFrameUI.openMenuKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicSplitPaneUI.rightKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicTabbedPaneUI.rightKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicToolBarUI.rightKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicSplitPaneUI.upKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicTabbedPaneUI.upKeyDeprecated.As of Java 2 platform v1.3.protectedKeyStrokeBasicToolBarUI.upKeyDeprecated.As of Java 2 platform v1.3.Methods injavax.swing.plaf.basic with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotectedJFrameBasicToolBarUI.createFloatingFrame(JToolBar toolbar) Deprecated.It is recommended thatBasicToolBarUI.createFloatingWindow(JToolBar)be used insteadprotectedActionListenerBasicSplitPaneUI.createKeyboardDownRightListener()Deprecated.As of Java 2 platform v1.3.protectedActionListenerBasicSplitPaneUI.createKeyboardEndListener()Deprecated.As of Java 2 platform v1.3.protectedActionListenerBasicSplitPaneUI.createKeyboardHomeListener()Deprecated.As of Java 2 platform v1.3.protectedActionListenerBasicSplitPaneUI.createKeyboardResizeToggleListener()Deprecated.As of Java 2 platform v1.3.protectedActionListenerBasicSplitPaneUI.createKeyboardUpLeftListener()Deprecated.As of Java 2 platform v1.3.protected intBasicSplitPaneUI.getDividerBorderSize()Deprecated.As of Java 2 platform v1.3, instead set the border on the divider.voidBasicDirectoryModel.intervalAdded(ListDataEvent e) Deprecated.Obsolete method, not used anymore.voidBasicDirectoryModel.intervalRemoved(ListDataEvent e) Deprecated.Obsolete method, not used anymore.protected booleanDeprecated.Obsolete method, not used anymore.BasicTextUI.modelToView(JTextComponent tc, int pos) Deprecated.BasicTextUI.modelToView(JTextComponent tc, int pos,Position.Bias bias) Deprecated.intBasicTextUI.viewToModel(JTextComponent tc,Point pt) Deprecated.intBasicTextUI.viewToModel(JTextComponent tc,Point pt,Position.Bias[] biasReturn) Deprecated.Uses ofDeprecated injavax.swing.plaf.metal
Classes injavax.swing.plaf.metal with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated.As of Java 2 platform v1.4.protected classDeprecated.As of JDK version 9.protected classDeprecated.As of JDK version 9.Methods injavax.swing.plaf.metal with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected voidMetalComboBoxUI.editablePropertyChanged(PropertyChangeEvent e) Deprecated.As of Java 2 platform v1.4.protected voidMetalComboBoxUI.removeListeners()Deprecated.As of Java 2 platform v1.4.voidMetalScrollPaneUI.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.intMultiTextUI.viewToModel(JTextComponent a,Point b) Deprecated.intMultiTextUI.viewToModel(JTextComponent a,Point b,Position.Bias[] c) Deprecated.Uses ofDeprecated injavax.swing.table
Fields injavax.swing.table with annotations of typeDeprecatedModifier and TypeFieldDescriptionprotected intTableColumn.resizedPostingDisableCountDeprecated.as of Java 2 platform v1.3Methods injavax.swing.table with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidTableColumn.disableResizedPosting()Deprecated.as of Java 2 platform v1.3voidTableColumn.enableResizedPosting()Deprecated.as of Java 2 platform v1.3Uses ofDeprecated injavax.swing.text
Classes injavax.swing.text with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated.classDeprecated.A table cell can now be any View implementation.Methods injavax.swing.text with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotectedTableView.TableCellTableView.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 intPasswordView.drawEchoCharacter(Graphics g, int x, int y, char c) Deprecated.protected voidDeprecated.protected voidDeprecated.protected intPasswordView.drawSelectedText(Graphics g, int x, int y, int p0, int p1) Deprecated.protected intPlainView.drawSelectedText(Graphics g, int x, int y, int p0, int p1) Deprecated.protected intWrappedPlainView.drawSelectedText(Graphics g, int x, int y, int p0, int p1) Deprecated.static final intUtilities.drawTabbedText(Segment s, int x, int y,Graphics g,TabExpander e, int startOffset) Deprecated.protected intPasswordView.drawUnselectedText(Graphics g, int x, int y, int p0, int p1) Deprecated.protected intPlainView.drawUnselectedText(Graphics g, int x, int y, int p0, int p1) Deprecated.protected intWrappedPlainView.drawUnselectedText(Graphics g, int x, int y, int p0, int p1) Deprecated.static final intUtilities.getBreakLocation(Segment s,FontMetrics metrics, int x0, int x,TabExpander e, int startOffset) Deprecated.protectedFontMetricsLabelView.getFontMetrics()Deprecated.FontMetrics are not used for glyph rendering when running in the JDK.static final intUtilities.getPositionAbove(JTextComponent c, int offs, int x) Deprecated.static final intUtilities.getPositionBelow(JTextComponent c, int offs, int x) Deprecated.static final intUtilities.getTabbedTextOffset(Segment s,FontMetrics metrics, int x0, int x,TabExpander e, int startOffset) static final intUtilities.getTabbedTextOffset(Segment s,FontMetrics metrics, int x0, int x,TabExpander e, int startOffset, boolean round) static final intUtilities.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.intJTextComponent.viewToModel(Point pt) Deprecated.replaced byJTextComponent.viewToModel2D(Point2D)intView.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 finalStringFormView.RESETDeprecated.As of 1.3, value comes from UIManager UIManager property FormView.resetButtonTextstatic finalStringFormView.SUBMITDeprecated.As of 1.3, value now comes from UIManager property FormView.submitButtonTextMethods injavax.swing.text.html with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected voidHTMLEditorKit.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 voidDefaultTreeSelectionModel.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 singlePathas such an argument.staticClassLoaderToolProvider.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 TypeMethodDescriptionstaticXMLEventFactoryXMLEventFactory.newInstance(String factoryId,ClassLoader classLoader) Deprecated.This method has been deprecated to maintain API consistency.staticXMLInputFactoryXMLInputFactory.newInstance(String factoryId,ClassLoader classLoader) Deprecated.This method has been deprecated to maintain API consistency.staticXMLInputFactoryXMLOutputFactory.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 TypeClassDescriptionclassDeprecated.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> TSockets.getOption(DatagramSocket s,SocketOption<T> name) Deprecated.useDatagramSocket.getOption(SocketOption)instead.static <T> TSockets.getOption(ServerSocket s,SocketOption<T> name) Deprecated.useServerSocket.getOption(SocketOption)instead.static <T> TSockets.getOption(Socket s,SocketOption<T> name) Deprecated.useSocket.getOption(SocketOption)instead.static <T> voidSockets.setOption(DatagramSocket s,SocketOption<T> name, T value) Deprecated.useDatagramSocket.setOption(SocketOption, Object)instead.static <T> voidSockets.setOption(ServerSocket s,SocketOption<T> name, T value) Deprecated.useServerSocket.setOption(SocketOption, Object)instead.static <T> voidSockets.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 inorg.ietf.jgss
Methods inorg.ietf.jgss with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidGSSContext.acceptSecContext(InputStream inStream,OutputStream outStream) Deprecated.The stream-based methods have been removed from RFC 8353.voidGSSContext.getMIC(InputStream inStream,OutputStream outStream,MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.intGSSContext.initSecContext(InputStream inStream,OutputStream outStream) Deprecated.The stream-based methods have been removed from RFC 8353.voidGSSContext.unwrap(InputStream inStream,OutputStream outStream,MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.voidGSSContext.verifyMIC(InputStream tokStream,InputStream msgStream,MessageProp msgProp) Deprecated.The stream-based methods have been removed from RFC 8353.voidGSSContext.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 TypeInterfaceDescriptioninterfaceDeprecated.This interface has been replaced by the SAX2Attributesinterface, which includes Namespace support.interfaceDeprecated.This interface has been replaced by the SAX2ContentHandlerinterface, which includes Namespace support.classDeprecated.This class works with the deprecatedDocumentHandlerinterface.interfaceDeprecated.This interface has been replaced by the SAX2XMLReaderinterface, which includes Namespace support.Uses ofDeprecated inorg.xml.sax.helpers
Classes inorg.xml.sax.helpers with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated.This class implements a deprecated interface,AttributeList; that interface has been replaced byAttributes, which is implemented in theAttributesImplhelper class.classDeprecated.This class works with the deprecatedParserinterface.final classDeprecated.It is recommended to useSAXParserFactoryinstead.