Deprecated API
Contents
- Terminally Deprecated
- Modules
- Interfaces
- Classes
- Exception Classes
- Fields
- Methods
- Constructors
- Enum Constants
-
Terminally Deprecated ElementsElementDeprecated inDescription16169The Applet API is deprecated, no replacement.9The Applet API is deprecated, no replacement.9The Applet API is deprecated, no replacement.9The Applet API is deprecated, no replacement.24There is no replacement for this class.9Finalization has been deprecated for removal. See
Object.finalize()
for background information and details about migration options.9Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.24since JDK 249The Applet API is deprecated. See the java.applet package documentation for further information.23232323232323232323232323232323232323this method will be removed when java.beans.beancontext is removed9It is recommended to useBeans.instantiate(ClassLoader, String, BeanContext)
, because the Applet API is deprecated. See the java.applet package documentation for further information.1.4This method does not write the values contained by thisPutField
object in a proper format, and may result in corruption of the serialization stream. The correct way to writePutField
data is by calling theObjectOutputStream.writeFields()
method.9It is rarely appropriate to use this constructor. The static factoryBoolean.valueOf(boolean)
is generally a better choice, as it is likely to yield significantly better space and time performance. Also consider using the final fieldsBoolean.TRUE
andBoolean.FALSE
if possible.9It is rarely appropriate to use this constructor. UseBoolean.parseBoolean(String)
to convert a string to aboolean
primitive, or useBoolean.valueOf(String)
to convert a string to aBoolean
object.9It is rarely appropriate to use this constructor. The static factoryByte.valueOf(byte)
is generally a better choice, as it is likely to yield significantly better space and time performance.9It is rarely appropriate to use this constructor. UseByte.parseByte(String)
to convert a string to abyte
primitive, or useByte.valueOf(String)
to convert a string to aByte
object.9It is rarely appropriate to use this constructor. The static factoryCharacter.valueOf(char)
is generally a better choice, as it is likely to yield significantly better space and time performance.9It is rarely appropriate to use this constructor. The static factoryDouble.valueOf(double)
is generally a better choice, as it is likely to yield significantly better space and time performance.9It is rarely appropriate to use this constructor. UseDouble.parseDouble(String)
to convert a string to adouble
primitive, or useDouble.valueOf(String)
to convert a string to aDouble
object.18Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.9It is rarely appropriate to use this constructor. Instead, use the static factory methodFloat.valueOf(float)
method as follows:Float.valueOf((float)value)
.9It is rarely appropriate to use this constructor. The static factoryFloat.valueOf(float)
is generally a better choice, as it is likely to yield significantly better space and time performance.9It is rarely appropriate to use this constructor. UseFloat.parseFloat(String)
to convert a string to afloat
primitive, or useFloat.valueOf(String)
to convert a string to aFloat
object.9It is rarely appropriate to use this constructor. The static factoryInteger.valueOf(int)
is generally a better choice, as it is likely to yield significantly better space and time performance.9It is rarely appropriate to use this constructor. UseInteger.parseInt(String)
to convert a string to aint
primitive, or useInteger.valueOf(String)
to convert a string to anInteger
object.9It is rarely appropriate to use this constructor. The static factoryLong.valueOf(long)
is generally a better choice, as it is likely to yield significantly better space and time performance.9It is rarely appropriate to use this constructor. UseLong.parseLong(String)
to convert a string to along
primitive, or useLong.valueOf(String)
to convert a string to aLong
object.9Finalization is deprecated and subject to removal in a future release. The use of finalization can lead to problems with security, performance, and reliability. See JEP 421 for discussion and alternatives.Subclasses that override
finalize
to perform cleanup should use alternative cleanup mechanisms and remove thefinalize
method. UseCleaner
andPhantomReference
as safer ways to release resources when an object becomes unreachable. Alternatively, add aclose
method to explicitly release resources, and implementAutoCloseable
to enable use of thetry
-with-resources statement.This method will remain in place until finalizers have been removed from most existing code.
18Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.When running in a JVM in which finalization has been disabled or removed, no objects will be pending finalization, so this method does nothing.
17There is no replacement for this class.9It is rarely appropriate to use this constructor. The static factoryShort.valueOf(short)
is generally a better choice, as it is likely to yield significantly better space and time performance.9It is rarely appropriate to use this constructor. UseShort.parseShort(String)
to convert a string to ashort
primitive, or useShort.valueOf(String)
to convert a string to aShort
object.17This method originally returned the system-wide Security Manager. Setting a Security Manager is no longer supported. There is no replacement for the Security Manager or this method.18Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.When running in a JVM in which finalization has been disabled or removed, no objects will be pending finalization, so this method does nothing.
17This method originally set the system-wide Security Manager. Setting a Security Manager is no longer supported. There is no replacement for the Security Manager or this method.17This method originally determined if the currently running thread had permission to modify this thread. This method was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this method.1.2This method was originally specified to "stop" a victim thread by causing the victim thread to throw aThreadDeath
. It was inherently unsafe. Stopping a thread caused it to unlock all of the monitors that it had locked (as a natural consequence of theThreadDeath
exception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects became visible to other threads, potentially resulting in arbitrary behavior. Usages ofstop
should be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), theinterrupt
method should be used to interrupt the wait. For more information, see Why is Thread.stop deprecated and the ability to stop a thread removed?.20Thread.stop()
was originally specified to "stop" a victim thread by causing the victim thread to throw aThreadDeath
. It was inherently unsafe and deprecated in an early JDK release. The ability to "stop" a thread withThread.stop
has been removed and theThread.stop
method changed to throw an exception. Consequently,ThreadDeath
is also deprecated, for removal.17This method originally determined if the currently running thread had permission to modify this thread group. This method was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this method.16This method was originally specified to destroy an empty thread group. The ability to explicitly destroy a thread group no longer exists. A thread group is eligible to be GC'ed when there are no live threads in the group and it is otherwise unreachable.16This method originally indicated if the thread group is a daemon thread group that is automatically destroyed when its last thread terminates. The concept of daemon thread group no longer exists. A thread group is eligible to be GC'ed when there are no live threads in the group and it is otherwise unreachable.16This method originally indicated if the thread group is destroyed. The ability to destroy a thread group and the concept of a destroyed thread group no longer exists. A thread group is eligible to be GC'ed when there are no live threads in the group and it is otherwise unreachable.16This method originally configured whether the thread group is a daemon thread group that is automatically destroyed when its last thread terminates. The concept of daemon thread group no longer exists. A thread group is eligible to be GC'ed when there are no live threads in the group and it is otherwise unreachable.1.2use getTimeToLive instead.1.2use setTimeToLive instead.1.2use theMulticastSocket.getTimeToLive()
method instead, which returns an int instead of a byte.1.4Use the following code or its equivalent instead:...... int ttl = mcastSocket.getOption(StandardSocketOptions.IP_MULTICAST_TTL); mcastSocket.setOption(StandardSocketOptions.IP_MULTICAST_TTL, newttl); mcastSocket.send(p); mcastSocket.setOption(StandardSocketOptions.IP_MULTICAST_TTL, ttl); ......
1.2use theMulticastSocket.setTimeToLive(int)
method instead, which uses int instead of byte as the type for ttl.1.1UseDatagramSocket
instead for UDP transport.1.1UseDatagramSocket
instead for UDP transport.1.8There is no replacement for the Security Manager.17This class was only useful in conjunction with the the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.17This exception was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.1.2This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.cert.Certificate
and related classes.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.1.2This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.1.2This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.17This class was only useful in conjunction with the Security Manager, which is no longer supported. Installing a system-widePolicy
object is no longer supported. The setPolicy method has been changed to always throwUnsupportedOperationException
. The getPolicy method has been changed to always return aPolicy
object that grants no permissions. There is no replacement for the Security Manager or this class.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.1.2This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.17This method originally returned aCallable
object that when called, executed the givencallable
under the current access control context. Access control contexts were only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this method.17This method originally returned aCallable
object that when called, executed the givencallable
under the current access control context, with the current context class loader as the context class loader. Access control contexts were only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this method.17This method originally returned a thread factory that created new threads that had the same access control context as the current thread. Access control contexts were only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this method.9Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.17This method originally checked that the current context was trusted to modify the logging configuration. This method was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this method.24ZipError is no longer used and is obsolete.ZipException
should be used instead.9Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.9Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.9Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.9Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.9Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.9Finalization has been deprecated for removal. SeeObject.finalize()
for background information and details about migration options.1621This method supported the legacy Subject Delegation feature, which has been removed. There is no replacement.9TheHandshakeCompletedEvent.getPeerCertificates()
method that returns an array ofjava.security.cert.Certificate
should be used instead.9TheSSLSession.getPeerCertificates()
method that returns an array ofjava.security.cert.Certificate
should be used instead.18This method originally performed the specifiedPrivilegedAction
with privileges enabled. Running the action with privileges enabled was only useful in conjunction with the Security Manager, which is no longer supported. This method has been changed to launch the action as is and bind the subject to the period of its execution. A replacement API namedSubject.callAs(javax.security.auth.Subject, java.util.concurrent.Callable<T>)
has been added which can be used to perform the same work. There is no replacement for the Security Manager.18This method originally performed the specifiedPrivilegedExceptionAction
with privileges enabled. Running the action with privileges enabled was only useful in conjunction with the Security Manager, which is no longer supported. This method has been changed to launch the action as is and bind the subject to the period of its execution. A replacement API namedSubject.callAs(javax.security.auth.Subject, java.util.concurrent.Callable<T>)
has been added which can be used to perform the same work. There is no replacement for the Security Manager.17This method originally performed the specifiedPrivilegedAction
with privileges enabled and restricted by the specifiedAccessControlContext
. Running the action with privileges enabled was only useful in conjunction with the Security Manager, which is no longer supported. This method has been changed to ignore theAccessControlContext
and launch the action as is and bind the subject to the period of its execution. A replacement API namedSubject.callAs(javax.security.auth.Subject, java.util.concurrent.Callable<T>)
has been added which can be used to perform the same work. There is no replacement for the Security Manager.17This method originally performed the specifiedPrivilegedExceptionAction
with privileges enabled and restricted by the specifiedAccessControlContext
. Running the action with privileges enabled was only useful in conjunction with the Security Manager, which is no longer supported. This method has been changed to ignore theAccessControlContext
and launch the action as is and bind the subject to the period of its execution. A replacement API namedSubject.callAs(javax.security.auth.Subject, java.util.concurrent.Callable<T>)
has been added which can be used to perform the same work. There is no replacement for the Security Manager.17This method used to get the subject associated with the providedAccessControlContext
, which was only useful in conjunction with the Security Manager, which is no longer supported. This method has been changed to always throwUnsupportedOperationException
. A replacement API namedSubject.current()
has been added which can be used to obtain the current subject. There is no replacement for the Security Manager.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.24There is no replacement for this class.9The Applet API is deprecated, no replacement.24since JDK 2417Obsolete method, not used anymore.17Obsolete method, not used anymore.17Obsolete method, not used anymore.171717171723This constructor was exposed erroneously and will be removed in a future release. UseBasicSliderUI(JSlider)
instead.17It is recommended thatBasicToolBarUI.createFloatingWindow(JToolBar)
be used instead219The Applet API is deprecated. See the java.applet package documentation for further information.24The jdk.jsobject module will be delivered with JavaFX.241624The jdk.jsobject module will be delivered with JavaFX.24The jdk.jsobject module will be delivered with JavaFX.
-
Deprecated ModulesModuleDeprecated inDescription24The jdk.jsobject module will be delivered with JavaFX.24
-
Deprecated InterfacesInterfaceDeprecated inDescription9The Applet API is deprecated, no replacement.9The Applet API is deprecated, no replacement.9The Applet API is deprecated, no replacement.9The Applet API is deprecated. See the java.applet package documentation for further information.2323232323232323232323no replacementno replacementno replacement.No replacement. This interface is unused and is obsolete.no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.1.2This class is deprecated and subject to removal in a future version of Java SE. It has been replaced by
java.security.cert.Certificate
and related classes.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.9LoggingMXBean
is no longer aplatform MXBean
and is replaced withPlatformLoggingMXBean
. It will not register in the platformMBeanServer
. UseManagementFactory.getPlatformMXBean(PlatformLoggingMXBean.class)
instead.9This interface has been deprecated. See theObservable
class for further information.1.5This interface has been replaced by the SAX2Attributes
interface, which includes Namespace support.1.5This interface has been replaced by the SAX2ContentHandler
interface, which includes Namespace support.1.5This interface has been replaced by the SAX2XMLReader
interface, which includes Namespace support.
-
Deprecated ClassesClassDeprecated inDescription9The Applet API is deprecated, no replacement.24There is no replacement for this class.9It is recommended that
AWTEvent
and its subclasses be used instead23232323232323This class incorrectly assumes that bytes adequately represent characters. As of JDK 1.1, the preferred way to operate on character streams is via the new character-stream classes, which include a class for counting line numbers.This class does not properly convert characters into bytes. As of JDK 1.1, the preferred way to create a stream from a string is via theStringReader
class.17There is no replacement for this class.1.8There is no replacement for the Security Manager.no replacementno replacementStatically generated stubs are deprecated, since stubs are generated dynamically. SeeUnicastRemoteObject
for information about dynamic stub generation.17This class was only useful in conjunction with the the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.1.2This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.1.2This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.17This class was only useful in conjunction with the Security Manager, which is no longer supported. Installing a system-widePolicy
object is no longer supported. The setPolicy method has been changed to always throwUnsupportedOperationException
. The getPolicy method has been changed to always return aPolicy
object that grants no permissions. There is no replacement for the Security Manager or this class.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.1.2This class is deprecated and subject to removal in a future version of Java SE. It has been replaced byjava.security.KeyStore
, thejava.security.cert
package, andjava.security.Principal
.9This class and theObserver
interface have been deprecated. The event model supported byObserver
andObservable
is quite limited, the order of notifications delivered byObservable
is unspecified, and state changes are not in one-for-one correspondence with notifications. For a richer event model, consider using thejava.beans
package. For reliable and ordered messaging among threads, consider using one of the concurrent data structures in thejava.util.concurrent
package. For reactive streams style programming, see theFlow
API.This class is deprecated as of version 1.3 of the Java PlatformUseMBeanServer.getClassLoaderRepository()
instead.UseMBeanServer.getClassLoaderRepository()
instead.17This class was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.24There is no replacement for this class.9The Applet API is deprecated, no replacement.This class is no longer used or needed.java.awt.Component.AccessibleAWTComponent
provides the same functionality and it is handled inComponent
.1717171717As of Java 2 platform v1.4.9As of JDK version 9. Obsolete class.9As of JDK version 9. Obsolete class.A table cell can now be any View implementation.16Java SE 9 added standard methods to set/get socket options, and retrieve the per-Socket supported options effectively rendering this API redundant. Please refer to the corresponding socket's class for the equivalent method to set/get a socket option or retrieve available socket options.24The jdk.jsobject module will be delivered with JavaFX.1.5This class works with the deprecatedDocumentHandler
interface. It has been replaced by the SAX2DefaultHandler
class.1.5This class implements a deprecated interface,AttributeList
; that interface has been replaced byAttributes
, which is implemented in theAttributesImpl
helper class.1.5This class works with the deprecatedParser
interface.9It is recommended to useSAXParserFactory
instead.
-
Deprecated Exception ClassesException ClassDeprecated inDescriptionThis exception is no longer thrownThis exception is no longer thrown20
Thread.stop()
was originally specified to "stop" a victim thread by causing the victim thread to throw aThreadDeath
. It was inherently unsafe and deprecated in an early JDK release. The ability to "stop" a thread withThread.stop
has been removed and theThread.stop
method changed to throw an exception. Consequently,ThreadDeath
is also deprecated, for removal.UseSecurityException
instead. Application code should never directly reference this class, andRMISecurityManager
no longer throws this subclass ofjava.lang.SecurityException
.no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater.This class is obsolete. UseExportException
instead.no replacement17This exception was only useful in conjunction with the Security Manager, which is no longer supported. There is no replacement for the Security Manager or this class.24ZipError is no longer used and is obsolete.ZipException
should be used instead.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.9Use the classes injava.security.cert
instead.24The jdk.jsobject module will be delivered with JavaFX.
-
Deprecated FieldsFieldDeprecated inDescriptionAs of JDK version 1.7, the
Cursor.getPredefinedCursor(int)
method should be used instead.as of 1.3. UseDataFlavor.getReaderForText(java.awt.datatransfer.Transferable)
instead ofTransferable.getTransferData(DataFlavor.plainTextFlavor)
.9It is recommended that ALT_GRAPH_DOWN_MASK andInputEvent.getModifiersEx()
be used instead9It is recommended that ALT_DOWN_MASK andInputEvent.getModifiersEx()
be used instead9It is recommended that BUTTON1_DOWN_MASK andInputEvent.getModifiersEx()
be used instead9It is recommended that BUTTON2_DOWN_MASK andInputEvent.getModifiersEx()
be used instead. Note that BUTTON2_MASK has the same value as ALT_MASK.9It is recommended that BUTTON3_DOWN_MASK andInputEvent.getModifiersEx()
be used instead. Note that BUTTON3_MASK has the same value as META_MASK.9It is recommended that CTRL_DOWN_MASK andInputEvent.getModifiersEx()
be used instead9It is recommended that META_DOWN_MASK andInputEvent.getModifiersEx()
be used instead9It is recommended that SHIFT_DOWN_MASK andInputEvent.getModifiersEx()
be used insteadreplaced byCursor.CROSSHAIR_CURSOR
.replaced byCursor.DEFAULT_CURSOR
.replaced byCursor.E_RESIZE_CURSOR
.replaced byCursor.HAND_CURSOR
.replaced byCursor.MOVE_CURSOR
.replaced byCursor.N_RESIZE_CURSOR
.replaced byCursor.NE_RESIZE_CURSOR
.replaced byCursor.NW_RESIZE_CURSOR
.replaced byCursor.S_RESIZE_CURSOR
.replaced byCursor.SE_RESIZE_CURSOR
.replaced byCursor.SW_RESIZE_CURSOR
.replaced byCursor.TEXT_CURSOR
.replaced byCursor.W_RESIZE_CURSOR
.replaced byCursor.WAIT_CURSOR
.17This field predates the general-purpose exception chaining facility. TheThrowable.getCause()
method is now the preferred means of obtaining this information.1.5Instead ofSURROGATES_AREA
, useCharacter.UnicodeBlock.HIGH_SURROGATES
,Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES
, andCharacter.UnicodeBlock.LOW_SURROGATES
. These constants match the block definitions of the Unicode Standard. TheCharacter.UnicodeBlock.of(char)
andCharacter.UnicodeBlock.of(int)
methods return the standard constants.9UseRoundingMode.CEILING
instead.9UseRoundingMode.DOWN
instead.9UseRoundingMode.FLOOR
instead.9UseRoundingMode.HALF_DOWN
instead.9UseRoundingMode.HALF_EVEN
instead.9UseRoundingMode.HALF_UP
instead.9UseRoundingMode.UNNECESSARY
instead.9UseRoundingMode.UP
instead.it is misplaced and shouldn't have existed.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.19This field uses the default values defined in the PKCS #1 standard. Some of these defaults are no longer recommended due to advances in cryptanalysis -- see the PKCS#1 v2.2 standard for more details. Thus, it is recommended to create a newPSSParameterSpec
with the desired parameter values using thePSSParameterSpec(String, String, AlgorithmParameterSpec, int, int)
constructor.Extension mechanism is no longer supported.Extension mechanism is no longer supported.Extension mechanism is no longer supported.Initialization of this field is prone to deadlocks. The field must be initialized by the Logger class initialization which may cause deadlocks with the LogManager class initialization. In such cases two class initialization wait for each other to complete. The preferred way to get the global logger object is via the callLogger.getGlobal()
. For compatibility with old JDK versions where theLogger.getGlobal()
is not available use the callLogger.getLogger(Logger.GLOBAL_LOGGER_NAME)
orLogger.getLogger("global")
.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.19This field uses the default values defined in the PKCS #1 standard. Some of these defaults are no longer recommended due to advances in cryptanalysis -- see Appendix B.1 of PKCS #1 for more details. Thus, it is recommended to create a newOAEPParameterSpec
with the desired parameter values using theOAEPParameterSpec(String, String, AlgorithmParameterSpec, PSource)
constructor.Instead of using this field, directly create the equivalent array{ ImageInputStream.class }
.Instead of using this field, directly create the equivalent array{ ImageOutputStream.class }
.equivalent toMonitor.alreadyNotifieds
[0].No replacement.UseALLOWED_CLASSNAMES_LIST
instead.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.AserialVersionUID
field in an interface is ineffectual. Do not use; no replacement.Because this field is final (it is part of an interface), its value cannot be changed.since 1.8since 1.8As of Java 2 platform v1.3As of 1.3.As of 1.3.As of 1.3.As of 1.3.As of 1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.As of Java 2 platform v1.3.as of Java 2 platform v1.3As of 1.3, value comes from UIManager UIManager property FormView.resetButtonTextAs of 1.3, value now comes from UIManager property FormView.submitButtonText
-
Deprecated MethodsMethodDeprecated inDescription15A JVM TI based JDWP back-end will never set this capability to true.15A JVM TI based JDWP back-end will never set this capability to true.14Use
OperatingSystemMXBean.getFreeMemorySize()
instead of this historically named method.14UseOperatingSystemMXBean.getCpuLoad()
instead of this historically named method.14UseOperatingSystemMXBean.getTotalMemorySize()
instead of this historically named method.23It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.23It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.23It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.23It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
.23It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
. UseSSLParameters.setCipherSuites(String[])
instead.23It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
. UseSSLParameters.setNeedClientAuth(boolean)
instead.23It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
. UseSSLParameters.setProtocols(String[])
instead.23It is recommended that the SSL parameters be configured and read through the use ofSSLParameters
. UseSSLParameters.setWantClientAuth(boolean)
instead.Please useCaseTree.getExpressions()
.replaced byaddLayoutComponent(Component, Object)
.replaced byaddLayoutComponent(Component, Object)
.As of JDK version 1.1, replaced bygetSelectedCheckbox()
.As of JDK version 1.1, replaced bysetSelectedCheckbox(Checkbox)
.As of JDK version 1.1, replaced bygetItemCount()
.As of JDK version 1.1, should register this component as ActionListener on component which fires action events.As of JDK version 1.1, replaced bygetBounds()
.As of JDK version 1.1, replaced bydispatchEvent(AWTEvent e)
.As of JDK version 1.1, replaced bysetEnabled(boolean)
.As of JDK version 1.1, replaced bysetEnabled(boolean)
.As of JDK version 1.1, replaced bysetEnabled(boolean)
.As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).As of JDK version 1.1 replaced by processEvent(AWTEvent).As of JDK version 1.1, replaced bysetVisible(boolean)
.As of JDK version 1.1, replaced by contains(int, int).As of 1.4, replaced byisFocusable()
.As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).As of JDK version 1.1, replaced bydoLayout()
.As of JDK version 1.1, replaced by getComponentAt(int, int).As of JDK version 1.1, replaced bygetLocation()
.As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).As of JDK version 1.1, replaced bygetMinimumSize()
.As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).As of JDK version 1.1, replaced bysetLocation(int, int)
.As of JDK version 1.1, replaced by transferFocus().As of JDK version 1.1, replaced by dispatchEvent(AWTEvent).As of JDK version 1.1, replaced bygetPreferredSize()
.As of JDK version 1.1, replaced bysetBounds(int, int, int, int)
.