|
Deprecated Methods |
java.lang.ThreadGroup.allowThreadSuspension(boolean)
pointless, since suspend is deprecated |
java.lang.SecurityManager.checkMulticast(InetAddress, byte)
use SecurityManager.checkPermission(Permission) 55 instead |
java.lang.SecurityManager.classDepth(String)
use SecurityManager.checkPermission(Permission) 55 instead |
java.lang.SecurityManager.classLoaderDepth()
use SecurityManager.checkPermission(Permission) 55 instead |
java.lang.VMThread.countStackFrames()
unsafe operation |
java.lang.Thread.countStackFrames()
pointless, since suspend is deprecated |
java.lang.SecurityManager.currentClassLoader()
use SecurityManager.checkPermission(Permission) 55 instead |
java.lang.SecurityManager.currentLoadedClass()
use SecurityManager.checkPermission(Permission) 55 instead |
java.lang.ClassLoader.defineClass(byte[], int, int)
use ClassLoader.defineClass(String, byte[], int, int) 55 instead |
java.lang.Thread.destroy()
This method was originally intended to simply destroy
the thread without performing any form of cleanup operation.
However, it was never implemented. It is now deprecated
for the same reason as suspend(),
stop() and resume(); namely,
it is prone to deadlocks. If a thread is destroyed while
it still maintains a lock on a resource, then this resource
will remain locked and any attempts by other threads to
access the resource will result in a deadlock. Thus, even
an implemented version of this method would be still be
deprecated, due to its unsafe nature. |
java.lang.String.getBytes(int, int, byte[], int)
use String.getBytes() 55 , which uses a char to byte encoder |
java.lang.SecurityManager.getInCheck()
use SecurityManager.checkPermission(Permission) 55 instead |
java.lang.Runtime.getLocalizedInputStream(InputStream)
InputStreamReader is the preferred way to read
local encodings |
java.lang.Runtime.getLocalizedOutputStream(OutputStream)
OutputStreamWriter is the preferred way to write
local encodings |
java.lang.SecurityManager.inClass(String)
use SecurityManager.checkPermission(Permission) 55 instead |
java.lang.SecurityManager.inClassLoader()
use SecurityManager.checkPermission(Permission) 55 instead |
java.lang.Character.isJavaLetter(char)
Replaced by Character.isJavaIdentifierStart(char) 55 |
java.lang.Character.isJavaLetterOrDigit(char)
Replaced by Character.isJavaIdentifierPart(char) 55 |
java.lang.Character.isSpace(char)
Replaced by Character.isWhitespace(char) 55 |
java.lang.Thread.resume()
pointless, since suspend is deprecated |
java.lang.ThreadGroup.resume()
pointless, since suspend is deprecated |
java.lang.System.runFinalizersOnExit(boolean)
never rely on finalizers to do a clean, thread-safe,
mop-up from your code |
java.lang.Runtime.runFinalizersOnExit(boolean)
never rely on finalizers to do a clean, thread-safe,
mop-up from your code |
java.lang.Thread.stop()
unsafe operation, try not to use |
java.lang.ThreadGroup.stop()
unsafe operation, try not to use |
java.lang.VMThread.stop(Throwable)
unsafe operation, try not to use |
java.lang.Thread.stop(Throwable)
unsafe operation, try not to use |
java.lang.Thread.suspend()
unsafe operation, try not to use |
java.lang.ThreadGroup.suspend()
unsafe operation, try not to use |