Uses of Annotation Interface
java.lang.Deprecated
Packages that useDeprecated
Package
Description
This is the core package of the Java DebugInterface (JDI), it defines mirrors for values, types, and the targetVirtualMachine itself - as well bootstrapping facilities.
This package contains JDK extensions to the standard implementation ofthe
java.lang.management API and also defines the managementinterface for some other components of the platform.Provides a simple high-level Http server API, which can be used to build embedded HTTP servers.
This package defines classes and interfaces for the JDK extensionsto the GSS-API.
Provides interfaces to represent source code as abstract syntaxtrees (AST).
Provides the API to attach to a Java virtual machine.
This package provides a legacy entry point for thejavac tool.
Provides the classes necessary to create an applet and the classes an appletuses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for paintinggraphics and images.
Provides interfaces and classes for transferring data between and withinapplications.
Provides interfaces and classes for dealing with different types of eventsfired by AWT components.
Provides classes and interfaces for producing rendering-independent images.
Contains classes related to developingbeans -- components based onthe JavaBeans architecture.
Provides classes and interfaces relating to bean context.
Provides for system input and output through data streams,serialization and the file system.
Provides classes that are fundamental to the design of the Javaprogramming language.
The
java.lang.invoke package provides low-level primitives for interactingwith the Java Virtual Machine.Provides the management interfaces for monitoring and management of theJava virtual machine and other components in the Java runtime.
Provides reference-object classes, which support a limited degreeof interaction with the garbage collector.
Provides classes and interfaces for obtaining reflective information aboutclasses and objects.
Provides classes for performing arbitrary-precision integerarithmetic (
BigInteger) and arbitrary-precision decimalarithmetic (BigDecimal).Provides the classes for implementing networking applications.
Defines interfaces and classes for the Java virtual machine to access files,file attributes, and file systems.
Provides the RMI package.
Provides classes and interface for RMI distributedgarbage-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 managingcertificates, certificate revocation lists (CRLs), andcertification paths.
Provides interfaces for generating RSA (Rivest, Shamir andAdleman AsymmetricCipher algorithm)keys as defined in the RSA Laboratory Technical NotePKCS#1, and DSA (Digital SignatureAlgorithm) keys as defined in NIST's FIPS-186.
Provides classes and interfaces for key specifications and algorithmparameter specifications.
Provides the API for accessing and processing data stored in adata source (usually a relational database) using theJava programming language.
Contains the collections framework, some internationalization support classes,a service loader, properties, random number generation, string parsingand scanning classes, base64 encoding and decoding, a bit array, andseveral miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
A small toolkit of classes that support lock-free thread-safeprogramming 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 anoptional manifest file.
Provides the classes and interfaces ofthe Java 2 platform's core logging facilities.
Provides classes for reading and writing the standard ZIP and GZIP fileformats.
Defines a contract between user-interface components and an assistivetechnology that provides access to those components.
Provides the classes and interfaces for cryptographicoperations.
Provides interfaces for Diffie-Hellman keys as defined in RSALaboratories' PKCS #3.
Provides classes and interfaces for key specifications andalgorithm parameter specifications.
A package of the Java Image I/O API containing the plug-in interfaces forreaders, 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 andstreams.
Utilities to assist in the processing ofprogram elements andtypes.
Provides the core classes for the Java Management Extensions.
Provides the classes which implement advanced dynamicloading.
Provides the definition of the ModelMBean classes.
Provides the definition of the monitor classes.
Provides the open data types and Open MBean descriptor classes.
Provides the definition of the Relation Service.
Interfaces for remote access toJMX MBean servers.
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 andauthorization.
This package contains utility classes related to the Kerberos networkauthentication protocol.
Provides classes for public key certificates.
Provides interfaces and classes for capture, processing, and playback ofsampled audio data.
Standard interfaces and base classes for JDBC
RowSet implementations.Provides a set of "lightweight" (all-Java language) componentsthat, to the maximum degree possible, work the same on all platforms.
Provides one interface and many abstract classes that Swing uses to provideits 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 textcomponents.
Provides the class
HTMLEditorKit and supporting classes for creatingHTML 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).
This package provides classes to create events and control Flight Recorder.
Platform specific socket options for the
java.net andjava.nio.channelssocket classes.Deprecated, for removal: This API element is subject to removalin a future version.
The jdk.jsobject module will be delivered with JavaFX.
The jdk.jsobject module will be delivered with JavaFX.
This package presents a framework that allows application developers tomake use of security services like authentication, data integrity anddata confidentiality from a variety of underlying security mechanismslike Kerberos, using a unified API.
Provides the interfaces for the Simple API for XML (SAX).
Provides helper classes, includingsupport for bootstrapping SAX-based applications.
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 thrownfinal classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction with the Security Manager,which is no longer supported.Methods 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 ofthis historically named method.default doubleOperatingSystemMXBean.getSystemCpuLoad()Deprecated.UseOperatingSystemMXBean.getCpuLoad()instead ofthis historically named method.default longOperatingSystemMXBean.getTotalPhysicalMemorySize()Deprecated.UseOperatingSystemMXBean.getTotalMemorySize()instead ofthis historically named method.Uses ofDeprecated incom.sun.net.httpserver
Methods incom.sun.net.httpserver with annotations of typeDeprecatedModifier and TypeMethodDescriptionString[]HttpsParameters.getCipherSuites()Deprecated.It is recommended that the SSL parameters be configured andread through the use ofSSLParameters.booleanHttpsParameters.getNeedClientAuth()Deprecated.It is recommended that the SSL parameters be configured andread through the use ofSSLParameters.String[]HttpsParameters.getProtocols()Deprecated.It is recommended that the SSL parameters be configured andread through the use ofSSLParameters.booleanHttpsParameters.getWantClientAuth()Deprecated.It is recommended that the SSL parameters be configured andread through the use ofSSLParameters.voidHttpsParameters.setCipherSuites(String[] cipherSuites) Deprecated.It is recommended that the SSL parameters be configured andread through the use ofSSLParameters.voidHttpsParameters.setNeedClientAuth(boolean needClientAuth) Deprecated.It is recommended that the SSL parameters be configured andread through the use ofSSLParameters.voidHttpsParameters.setProtocols(String[] protocols) Deprecated.It is recommended that the SSL parameters be configured andread through the use ofSSLParameters.voidHttpsParameters.setWantClientAuth(boolean wantClientAuth) Deprecated.It is recommended that the SSL parameters be configured andread through the use ofSSLParameters.Uses ofDeprecated incom.sun.security.jgss
Classes incom.sun.security.jgss with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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.attach
Classes incom.sun.tools.attach with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction with the Security Manager,which is no longer supported.Uses 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 TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.There is no replacement for this class.classDeprecated.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 componentwhich 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, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.voidPrintJob.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.Polygon.getBoundingBox()Deprecated.As of JDK version 1.1,replaced bygetBounds().Graphics.getClipRect()Deprecated.As of JDK version 1.1,replaced bygetClipBounds().CheckboxGroup.getCurrent()Deprecated.As of JDK version 1.1,replaced bygetSelectedCheckbox().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().finalStringWindow.getWarningString()Deprecated, for removal: This API element is subject to removal in a future version.since JDK 24booleanDeprecated.As of JDK version 1.1,replaced by processFocusEvent(FocusEvent).booleanComponent.handleEvent(Event evt) Deprecated.As of JDK version 1.1replaced 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.1replaced by dispatchEvent(AWTEvent).booleanDeprecated.As of JDK version 1.1replaced 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.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.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) Deprecated, for removal: This API element is subject to removal in a future version.this method will be removed when java.beans.beancontext is removedstaticObjectBeans.instantiate(ClassLoader cls,String beanName,BeanContext beanContext,AppletInitializer initializer) Deprecated, for removal: This API element is subject to removal in a future version.It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext),because the Applet API is deprecated.Uses ofDeprecated injava.beans.beancontext
Classes injava.beans.beancontext with annotations of typeDeprecatedModifier and TypeInterfaceDescriptioninterfaceDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.interfaceDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.Uses ofDeprecated injava.io
Classes injava.io with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.classDeprecated.This class incorrectly assumes that bytes adequately represent characters.final classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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 exceptionchaining 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 thatare illegal in URLs.abstract voidObjectOutputStream.PutField.write(ObjectOutput out) Deprecated, for removal: This API element is subject to removal in a future version.This method does not write the values contained by 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 aninput stream is to convert it into a character stream, for example:Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r);Uses ofDeprecated injava.lang
Classes injava.lang with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.classDeprecated, for removal: This API element is subject to removal in a future version.There is no replacement for this class.classDeprecated, for removal: This API element is subject to removal in a future version.Thread.stop()was originally specified to "stop" a victim thread by causing the victim thread to throw aThreadDeath.Fields injava.lang with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalCharacter.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 TypeMethodDescriptionfinal voidThread.checkAccess()Deprecated, for removal: This API element is subject to removal in a future version.This method originally determined if the currently runningthread had permission to modify this thread.final voidThreadGroup.checkAccess()Deprecated, for removal: This API element is subject to removal in a future version.This method originally determined if the currently runningthread had permission to modify this thread group.protected finalClass<?> ClassLoader.defineClass(byte[] b, int off, int len) Deprecated.Replaced bydefineClass(String, byte[], int, int)final voidThreadGroup.destroy()Deprecated, for removal: This API element is subject to removal in a future version.This method was originally specified to destroy an empty thread group.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[])orProcessBuildershould be used instead.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[])orProcessBuildershould be used instead.Deprecated.This method is error-prone and should not be used, the corresponding methodRuntime.exec(String[], String[], File)orProcessBuildershould be used instead.protected final voidEnum.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected voidObject.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a futurerelease.voidString.getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) Deprecated.This method does not properly convert characters intobytes.longThread.getId()Deprecated.This method is not final and may be overridden to return avalue that is not the thread ID.protectedPackageClassLoader.getPackage(String name) Deprecated.If multiple class loaders delegate to each other and define classeswith the same package name, and one such loader relies on the lookupbehavior ofgetPackageto return aPackagefroma 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 classeswith the same package name, and one such loader relies on the lookupbehavior ofgetPackageto return aPackagefroma 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 originally returnedthe system-wide Security Manager.final booleanThreadGroup.isDaemon()Deprecated, for removal: This API element is subject to removal in a future version.This method originally indicated if the thread group is adaemon thread group that is automatically destroyed when its last thread terminates.booleanThreadGroup.isDestroyed()Deprecated, for removal: This API element is subject to removal in a future version.This method originally indicated if the thread group is destroyed.static 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 versionnumber is not the major-release number but the feature-releasecounter, incremented for every time-based release.intRuntime.Version.minor()Deprecated.As of Java SE 10, the second element of a versionnumber is not the minor-release number but the interim-releasecounter, incremented for every interim release.Class.newInstance()Deprecated.This method propagates any exception thrown by thenullary constructor, including a checked exception.voidRuntime.runFinalization()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.static voidSystem.runFinalization()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.intRuntime.Version.security()Deprecated.As of Java SE 10, the third element of a versionnumber 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.This method originally configured whether the thread group is adaemon thread group that is automatically destroyed when its last thread terminates.static voidSystem.setSecurityManager(SecurityManager sm) Deprecated, for removal: This API element is subject to removal in a future version.This method originally setthe system-wide Security Manager.final voidThread.stop()Deprecated, for removal: This API element is subject to removal in a future version.This method was originally specified to "stop" a victim thread by causing the victim thread to throw aThreadDeath.Constructors injava.lang with annotations of typeDeprecatedModifierConstructorDescriptionBoolean(boolean value) Deprecated.It is rarely appropriate to use this constructor.Deprecated.It is rarely appropriate to use this constructor.Byte(byte value) Deprecated.It is rarely appropriate to use this constructor.Deprecated.It is rarely appropriate to use this constructor.Character(char value) Deprecated.It is rarely appropriate to use this constructor.Double(double value) Deprecated.It is rarely appropriate to use this constructor.Deprecated.It is rarely appropriate to use this constructor.Float(double value) Deprecated.It is rarely appropriate to use this constructor.Float(float value) Deprecated.It is rarely appropriate to use this constructor.Deprecated.It is rarely appropriate to use this constructor.Integer(int value) Deprecated.It is rarely appropriate to use this constructor.Deprecated.It is rarely appropriate to use this constructor.Long(long value) Deprecated.It is rarely appropriate to use this constructor.Deprecated.It is rarely appropriate to use this constructor.Short(short value) Deprecated.It is rarely appropriate to use this constructor.Deprecated.It is rarely appropriate to use this constructor.String(byte[] ascii, int hibyte) Deprecated.This method does not properly convert bytes intocharacters.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 testPRIVATEaccessthat implies full privilege access butMODULEaccess has since becomeindependent ofPRIVATEaccess.Uses ofDeprecated injava.lang.management
Classes injava.lang.management with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction with the Security Manager,which is no longer supported.Methods injava.lang.management with annotations of typeDeprecatedModifier and TypeMethodDescriptionintMemoryMXBean.getObjectPendingFinalizationCount()Deprecated.Finalization has been deprecated for removal.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 hasbeen cleared and enqueued but was never implemented to do this test.Uses ofDeprecated injava.lang.reflect
Classes injava.lang.reflect with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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 checksif the reflected object is accessible when it actually indicatesif 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)shouldbe used in preference to this legacy method.Uses ofDeprecated injava.net
Classes injava.net with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.final classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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 default charset.staticStringDeprecated.The resulting string may vary depending on the default charset.staticStringURLConnection.getDefaultRequestProperty(String key) Deprecated.The instance specific getRequestProperty methodshould be used after an appropriate instance of URLConnectionis obtained.MulticastSocket.getInterface()Deprecated.The network interface may not be uniquely identified by the InetAddress returned.booleanMulticastSocket.getLoopbackMode()Deprecated.HttpURLConnection.getPermission()Deprecated, for removal: This API element is subject to removal in a future version.Permissions can no longer be used for controlling access to resourcesas the Security Manager is no longer supported.URLConnection.getPermission()Deprecated, for removal: This API element is subject to removal in a future version.Permissions can no longer be used for controlling access to resourcesas the Security Manager is no longer supported.protected abstract byteDatagramSocketImpl.getTTL()Deprecated, for removal: This API element is subject to removal in a future version.use getTimeToLive instead.byteMulticastSocket.getTTL()Deprecated, for removal: This API element is subject to removal in a future version.use theMulticastSocket.getTimeToLive()method instead,which returns anint instead of abyte.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, for removal: This API element is subject to removal in a future version.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 methodshould be used after an appropriate instance of URLConnectionis 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, for removal: This API element is subject to removal in a future version.use setTimeToLive instead.voidMulticastSocket.setTTL(byte ttl) Deprecated, for removal: This API element is subject to removal in a future version.use theMulticastSocket.setTimeToLive(int)method instead, which usesint instead ofbyte as the type for ttl.protected voidDeprecated.Use setURL(URL, String, String, int, String, String, String, String);Constructors injava.net with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Thestreamparameter provided a way in early JDK releases to create aSocketthat used a datagram socket.Socket(InetAddress host, int port, boolean stream) Deprecated, for removal: This API element is subject to removal in a future version.Thestreamparameter provided a way in early JDK releases to create aSocketthat used a datagram socket.Deprecated.UseURI.toURL()to construct an instance of URL.Deprecated.UseURI.toURL()to construct an instance of URL.URL(String protocol,String host, int port,String file,URLStreamHandler handler) Deprecated.UseURL.of(URI, URLStreamHandler)to construct an instance of URLassociated with a custom protocol handler.Deprecated.UseURI.toURL()to construct an instance of URL.Deprecated.UseURI.toURL()to construct an instance of URL.URL(URL context,String spec,URLStreamHandler handler) Deprecated.UseURL.of(URI, URLStreamHandler)to construct an instance of URLassociated with a custom protocol handler.Uses ofDeprecated injava.nio.file
Classes injava.nio.file with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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.There is no replacement for the Security Manager.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, sincestubs 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 was only useful in conjunction with thethe Security Manager, which is no longer supported.classDeprecated, for removal: This API element is subject to removal in a future version.This exception was only useful in conjunction withthe Security Manager, which is no longer supported.final classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction withthe Security Manager, which is no longer supported.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 was only useful in conjunction withthe Security Manager, which is no longer supported.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 was only useful in conjunction withthe Security Manager, which is no longer supported.static interfaceDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction withthe Security Manager, which is no longer supported.classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction withthe Security Manager, which is no longer supported.final classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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.final classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resources as the Security Manager is no longer supported.Fields injava.security with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final longKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longPrivateKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.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 proprietaryproperty in the master file of the "SUN" Cryptographic ServiceProvider in order to determine how to parse algorithm-specificparameters.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 isineffectual.static final longDSAPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longECPrivateKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longECPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longRSAMultiPrimePrivateCrtKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longRSAPrivateCrtKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longRSAPrivateKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longRSAPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.Uses ofDeprecated injava.security.spec
Fields injava.security.spec with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalPSSParameterSpecPSSParameterSpec.DEFAULTDeprecated.This field uses the default values defined in the PKCS #1 standard.Constructors injava.security.spec with annotations of typeDeprecatedModifierConstructorDescriptionPSSParameterSpec(int saltLen) Deprecated.This constructor uses the default values defined in the PKCS #1 standard except for the salt length.Uses ofDeprecated injava.sql
Methods injava.sql with annotations of typeDeprecatedModifier and TypeMethodDescriptionCallableStatement.getBigDecimal(int parameterIndex, int scale) Deprecated.usegetBigDecimal(int parameterIndex)orgetBigDecimal(String parameterName)ResultSet.getBigDecimal(int columnIndex, int scale) Deprecated.UsegetBigDecimal(int columnIndex)orgetBigDecimal(String columnLabel)ResultSet.getBigDecimal(String columnLabel, int scale) Deprecated.UsegetBigDecimal(int columnIndex)orgetBigDecimal(String columnLabel)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.final classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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 erroroccurs 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 aGMTTimeZone.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).Deprecated.Locale constructors have been deprecated.Deprecated.Locale constructors have been deprecated.Deprecated.Locale constructors have been deprecated.Uses ofDeprecated injava.util.concurrent
Methods injava.util.concurrent with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected voidThreadPoolExecutor.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.static <T> Callable<T> Executors.privilegedCallable(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method originally returned aCallableobject that when called, executed the givencallableunder the current access control context.static <T> Callable<T> Executors.privilegedCallableUsingCurrentClassLoader(Callable<T> callable) Deprecated, for removal: This API element is subject to removal in a future version.This method originally returned aCallableobject that when called, executed the givencallableunder the current access control context, with the current context class loader as the context class loader.staticThreadFactoryExecutors.privilegedThreadFactory()Deprecated, for removal: This API element is subject to removal in a future version.This method originally returned a thread factory that created new threads that had the same access control context as the current thread.Uses ofDeprecated injava.util.concurrent.atomic
Methods injava.util.concurrent.atomic with annotations of typeDeprecatedModifier and TypeMethodDescriptionbooleanAtomicBoolean.weakCompareAndSet(boolean expectedValue, boolean newValue) Deprecated.This method has plain memory effects but the methodname 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 methodname 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 methodname 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 methodname 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 methodname 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 methodname 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 methodname 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.final classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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 originally checked that the current context wastrusted to modify the logging configuration.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 injava.util.zip
Classes injava.util.zip with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.ZipError is no longer used and is obsolete.Methods injava.util.zip with annotations of typeDeprecatedModifier and TypeMethodDescriptionintDeflater.getTotalIn()Deprecated.UseDeflater.getBytesRead()insteadintInflater.getTotalIn()Deprecated.UseInflater.getBytesRead()insteadintDeflater.getTotalOut()Deprecated.UseDeflater.getBytesWritten()insteadintInflater.getTotalOut()Deprecated.UseInflater.getBytesWritten()insteadUses 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 isineffectual.Uses ofDeprecated injavax.crypto.interfaces
Fields injavax.crypto.interfaces with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final longDHPrivateKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longDHPublicKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.static final longPBEKey.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.Uses ofDeprecated injavax.crypto.spec
Fields injavax.crypto.spec with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalOAEPParameterSpecOAEPParameterSpec.DEFAULTDeprecated.This field uses the default values defined in the PKCS #1 standard.Uses ofDeprecated injavax.imageio.spi
Fields injavax.imageio.spi with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic finalClass<?>[]ImageReaderSpi.STANDARD_INPUT_TYPEDeprecated.Instead of using this field, directly createthe equivalent array{ ImageInputStream.class }.static finalClass<?>[]ImageWriterSpi.STANDARD_OUTPUT_TYPEDeprecated.Instead of using this field, directly createthe equivalent array{ ImageOutputStream.class }.Methods injavax.imageio.spi with annotations of typeDeprecatedModifier and TypeMethodDescriptionvoidServiceRegistry.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.Uses ofDeprecated injavax.imageio.stream
Methods injavax.imageio.stream with annotations of typeDeprecatedModifier and TypeMethodDescriptionprotected voidFileCacheImageInputStream.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected voidFileImageInputStream.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected voidFileImageOutputStream.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected voidImageInputStreamImpl.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.protected voidMemoryCacheImageInputStream.finalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization has been deprecated for removal.Uses ofDeprecated injavax.lang.model.util
Constructors injavax.lang.model.util with annotations of typeDeprecatedModifierConstructorDescriptionprotectedDeprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedElementKindVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedElementKindVisitor7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedElementScanner6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedElementScanner7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedSimpleAnnotationValueVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedSimpleAnnotationValueVisitor7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedSimpleElementVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedSimpleElementVisitor7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedSimpleTypeVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedSimpleTypeVisitor7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedTypeKindVisitor6(R defaultValue) Deprecated.Release 6 is obsolete; update to a visitor for a newerrelease level.protectedDeprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.protectedTypeKindVisitor7(R defaultValue) Deprecated.Release 7 is obsolete; update to a visitor for a newerrelease level.Uses ofDeprecated injavax.management
Classes injavax.management with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated.UseMBeanServer.getClassLoaderRepository()instead.classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction with the Security Manager,which is no longer supported.classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction with the Security Manager, which is no longer supported.classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction with the Security Manager,which is no longer supported.Methods injavax.management with annotations of typeDeprecatedModifier and TypeMethodDescriptiondefaultObjectInputStreamMBeanServer.deserialize(String className, byte[] data) Deprecated.UseMBeanServer.getClassLoaderRepository()to obtain theclass loader repository and use it to deserialize.defaultObjectInputStreamMBeanServer.deserialize(String className,ObjectName loaderName, byte[] data) Deprecated.UsegetClassLoaderto obtainthe class loader for deserialization.defaultObjectInputStreamMBeanServer.deserialize(ObjectName name, byte[] data) Deprecated.UsegetClassLoaderFortoobtain 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 itis being evaluated by usingQueryEval.getMBeanServer().Constructors injavax.management with annotations of typeDeprecatedModifierConstructorDescriptionDeprecated.An instance created with this constructor cannot beused in a query.Uses ofDeprecated injavax.management.loading
Classes injavax.management.loading with annotations of typeDeprecatedUses ofDeprecated injavax.management.modelmbean
Classes injavax.management.modelmbean with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.This class exists only to support XML parsing implemented privately in this module,in DescriptorSupport.Methods injavax.management.modelmbean with annotations of typeDeprecatedModifier and TypeMethodDescriptionDescriptorSupport.toXMLString()Deprecated, for removal: This API element is subject to removal in a future version.This method exists for historical reasons.Constructors injavax.management.modelmbean with annotations of typeDeprecatedModifierConstructorDescriptionDescriptorSupport(String inStr) Deprecated, for removal: This API element is subject to removal in a future version.This constructor exists for historical reasons.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(ObjectName)voidMonitorMBean.setObservedObject(ObjectName object) Deprecated.As of JMX 1.2, replaced byMonitorMBean.addObservedObject(ObjectName)voidCounterMonitor.setThreshold(Number value) Deprecated.As of JMX 1.2, replaced byCounterMonitor.setInitThreshold(Number)voidCounterMonitorMBean.setThreshold(Number value) Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.setInitThreshold(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
Classes injavax.management.remote with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction with the Security Manager,which is no longer supported.Methods injavax.management.remote with annotations of typeDeprecatedModifier and TypeMethodDescriptiondefaultMBeanServerConnectionJMXConnector.getMBeanServerConnection(Subject delegationSubject) Deprecated, for removal: This API element is subject to removal in a future version.This method supported the legacy Subject Delegation feature,which has been removed.Uses ofDeprecated injavax.naming
Fields injavax.naming with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final longName.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.Uses ofDeprecated injavax.naming.directory
Fields injavax.naming.directory with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final longAttribute.serialVersionUIDDeprecated.AserialVersionUIDfield in an interface isineffectual.Uses ofDeprecated injavax.net.ssl
Classes injavax.net.ssl with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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 TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.final classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.classDeprecated, for removal: This API element is subject to removal in a future version.This class was only useful in conjunction with the Security Manager, which is no longer supported.Methods injavax.security.auth with annotations of typeDeprecatedModifier and TypeMethodDescriptionstatic <T> TSubject.doAs(Subject subject,PrivilegedAction<T> action) Deprecated, for removal: This API element is subject to removal in a future version.This method originally performed the specifiedPrivilegedActionwith privileges enabled.static <T> TSubject.doAs(Subject subject,PrivilegedExceptionAction<T> action) Deprecated, for removal: This API element is subject to removal in a future version.This method originally performed the specifiedPrivilegedExceptionActionwith privileges enabled.static <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 originally performed the specifiedPrivilegedActionwith privileges enabled and restricted by the specifiedAccessControlContext.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 originally performed the specifiedPrivilegedExceptionActionwith privileges enabled and restricted by the specifiedAccessControlContext.staticSubjectSubject.getSubject(AccessControlContext acc) Deprecated, for removal: This API element is subject to removal in a future version.This method used to get the subject associated with the providedAccessControlContext, which was only useful in conjunction withthe Security Manager, which is no longer supported.Uses ofDeprecated injavax.security.auth.kerberos
Classes injavax.security.auth.kerberos with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.final classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.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.sound.sampled
Classes injavax.sound.sampled with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.There is no replacement for this class.Uses ofDeprecated injavax.sql.rowset
Fields injavax.sql.rowset with annotations of typeDeprecatedModifier and TypeFieldDescriptionstatic final 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().finalStringJInternalFrame.getWarningString()Deprecated, for removal: This API element is subject to removal in a future version.since JDK 24voidJComponent.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, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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 thedivider.voidBasicDirectoryModel.intervalAdded(ListDataEvent e) Deprecated, for removal: This API element is subject to removal in a future version.Obsolete method, not used anymore.voidBasicDirectoryModel.intervalRemoved(ListDataEvent e) Deprecated, for removal: This API element is subject to removal in a future version.Obsolete method, not used anymore.protected booleanDeprecated, for removal: This API element is subject to removal in a future version.Obsolete method, not used anymore.BasicTextUI.modelToView(JTextComponent tc, int pos) Deprecated.BasicTextUI.modelToView(JTextComponent tc, int pos,Position.Bias bias) Deprecated.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 arbitraryView implementation and should be produced by theViewFactory 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 asinglePathas such an argument.staticClassLoaderToolProvider.getSystemToolClassLoader()Deprecated.This method is subject to removal in a future version ofJava 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.jfr
Classes injdk.jfr with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.Uses ofDeprecated injdk.net
Classes injdk.net with annotations of typeDeprecatedModifier and TypeClassDescriptionfinal classDeprecated, for removal: This API element is subject to removal in a future version.This permission cannot be used for controlling access to resourcesas the Security Manager is no longer supported.classDeprecated.Java SE 9 added standard methods to set/get socket options, and retrieve the per-Socketsupported 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 innetscape.javascript
Classes innetscape.javascript with annotations of typeDeprecatedModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.The jdk.jsobject module will be delivered with JavaFX.classDeprecated, for removal: This API element is subject to removal in a future version.The jdk.jsobject module will be delivered with JavaFX.Uses ofDeprecated inorg.ietf.jgss
Methods inorg.ietf.jgss with annotations of typeDeprecatedModifier and 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.