Interface and Description |
---|
org.xml.sax.AttributeList
This interface has been replaced by the SAX2
Attributes
interface, which includes Namespace support. |
java.security.Certificate
A new certificate handling package is created in the Java platform.
This Certificate interface is entirely deprecated and
is here to allow for a smooth transition to the new
package.
|
org.xml.sax.DocumentHandler
This interface has been replaced by the SAX2
ContentHandler
interface, which includes Namespace support. |
java.rmi.server.LoaderHandler
no replacement
|
org.xml.sax.Parser
This interface has been replaced by the SAX2
XMLReader
interface, which includes Namespace support. |
java.rmi.registry.RegistryHandler
no replacement
|
java.rmi.server.RemoteCall
no replacement.
|
java.rmi.server.ServerRef
No replacement. This interface is unused and is obsolete.
|
java.rmi.server.Skeleton
no replacement. Skeletons are no longer required for remote
method calls in the Java 2 platform v1.2 and greater.
|
Class and Description |
---|
org.xml.sax.helpers.AttributeListImpl
This class implements a deprecated interface,
AttributeList ;
that interface has been replaced by
Attributes ,
which is implemented in the
AttributesImpl helper class. |
com.codename1.util.CStringBuilder
we will be moving to the proper string builder very soon
|
org.xml.sax.HandlerBase
This class works with the deprecated
DocumentHandler
interface. It has been replaced by the SAX2
DefaultHandler
class. |
com.codename1.ui.html.HTMLComponent
this component includes some customizability advantages but its probably better for 99% of the use
cases to use the WebBrowser Component from the Components package. That component works with the native
browser when applicable which is a far superior approach.
|
java.security.Identity
This class is no longer used. Its functionality has been
replaced by
java.security.KeyStore , the
java.security.cert package, and
java.security.Principal . |
java.security.IdentityScope
This class is no longer used. Its functionality has been
replaced by
java.security.KeyStore , the
java.security.cert package, and
java.security.Principal . |
com.sun.lwuit.IndexedImage
This class should no longer be referenced directly. Use Image.createIndexed instead
|
java.io.LineNumberInputStream
This 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.
|
java.rmi.server.LogStream
no replacement
|
java.rmi.server.Operation
no replacement
|
org.xml.sax.helpers.ParserFactory
This class works with the deprecated
Parser
interface. |
javax.security.auth.Policy
as of JDK version 1.4 -- Replaced by java.security.Policy.
java.security.Policy has a method:
public PermissionCollection getPermissions (java.security.ProtectionDomain pd)and ProtectionDomain has a constructor: public ProtectionDomain (CodeSource cs, PermissionCollection permissions, ClassLoader loader, Principal[] principals)These two APIs provide callers the means to query the Policy for Principal-based Permission entries. |
java.rmi.server.RemoteStub
Statically generated stubs are deprecated, since
stubs are generated dynamically. See
UnicastRemoteObject
for information about dynamic stub generation. |
java.rmi.RMISecurityManager
Use
SecurityManager instead. |
java.security.Signer
This class is no longer used. Its functionality has been
replaced by
java.security.KeyStore , the
java.security.cert package, and
java.security.Principal . |
com.sun.lwuit.StaticAnimation
this class shouldn't be referenced directly, use the Image base class
for all functionality
|
java.io.StringBufferInputStream
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 the
StringReader class. |
com.codename1.io.gzip.ZStream
Not for public use in the future.
|
Exceptions and Description |
---|
java.rmi.RMISecurityException
Use
SecurityException instead.
Application code should never directly reference this class, and
RMISecurityManager no longer throws this subclass of
java.lang.SecurityException . |
java.rmi.ServerRuntimeException
no replacement
|
java.rmi.server.SkeletonMismatchException
no replacement. Skeletons are no longer required for remote
method calls in the Java 2 platform v1.2 and greater.
|
java.rmi.server.SkeletonNotFoundException
no replacement. Skeletons are no longer required for remote
method calls in the Java 2 platform v1.2 and greater.
|
java.rmi.server.SocketSecurityException
This class is obsolete. Use
ExportException instead. |
Field and Description |
---|
java.util.jar.Attributes.Name.EXTENSION_INSTALLATION
Extension mechanism will be removed in a future release.
Use class path instead.
|
java.util.logging.Logger.global
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 call
Logger.getGlobal() .
For compatibility with old JDK versions where the
Logger.getGlobal() is not available use the call
Logger.getLogger(Logger.GLOBAL_LOGGER_NAME)
or Logger.getLogger("global") . |
java.net.HttpURLConnection.HTTP_SERVER_ERROR
it is misplaced and shouldn't have existed.
|
java.util.jar.Attributes.Name.IMPLEMENTATION_URL
Extension mechanism will be removed in a future release.
Use class path instead.
|
java.util.jar.Attributes.Name.IMPLEMENTATION_VENDOR_ID
Extension mechanism will be removed in a future release.
Use class path instead.
|
java.lang.SecurityManager.inCheck
This type of security checking is not recommended.
It is recommended that the
checkPermission
call be used instead. |
java.lang.Character.UnicodeBlock.SURROGATES_AREA
As of J2SE 5, use
Character.UnicodeBlock.HIGH_SURROGATES ,
Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES , and
Character.UnicodeBlock.LOW_SURROGATES . These new constants match
the block definitions of the Unicode Standard.
The Character.UnicodeBlock.of(char) and Character.UnicodeBlock.of(int) methods
return the new constants, not SURROGATES_AREA. |
Method and Description |
---|
com.codename1.io.ConnectionRequest.addArgument(String, byte[])
use the version that accepts a string instead
|
com.codename1.ui.Font.addContrast(byte)
bitmap font functionality is now deprecated
|
java.util.jar.Pack200.Packer.addPropertyChangeListener(PropertyChangeListener)
The dependency on
PropertyChangeListener creates
a significant impediment to future modularization of the
Java platform. This method will be removed in a future
release.
Applications that need to monitor progress of the packer
can poll the value of the PROGRESS
property instead. |
java.util.jar.Pack200.Unpacker.addPropertyChangeListener(PropertyChangeListener)
The dependency on
PropertyChangeListener creates
a significant impediment to future modularization of the
Java platform. This method will be removed in a future
release.
Applications that need to monitor progress of the
unpacker can poll the value of the PROGRESS property instead. |
java.util.logging.LogManager.addPropertyChangeListener(PropertyChangeListener)
The dependency on
PropertyChangeListener creates a
significant impediment to future modularization of the Java
platform. This method will be removed in a future release.
The global LogManager can detect changes to the
logging configuration by overridding the readConfiguration method. |
com.codename1.ui.Tabs.addTab(Button, Component)
should use radio button as an argument
|
com.codename1.ui.Tabs.addTabsFocusListener(FocusListener)
use addSelectionListener instead
|
java.lang.ThreadGroup.allowThreadSuspension(boolean)
The definition of this call depends on
ThreadGroup.suspend() ,
which is deprecated. Further, the behavior of this call
was never specified. |
com.codename1.io.Oauth2.authenticate()
use createAuthComponent or showAuthentication which work asynchronously and adapt better
to different platforms
|
java.lang.SecurityManager.checkAwtEventQueueAccess()
The dependency on
AWTPermission creates an
impediment to future modularization of the Java platform.
Users of this method should instead invoke
SecurityManager.checkPermission(java.security.Permission) directly.
This method will be changed in a future release to check
the permission java.security.AllPermission . |
java.lang.SecurityManager.checkMemberAccess(Class<?>, int)
This method relies on the caller being at a stack depth
of 4 which is error-prone and cannot be enforced by the runtime.
Users of this method should instead invoke
SecurityManager.checkPermission(java.security.Permission)
directly. This method will be changed in a future release
to check the permission java.security.AllPermission . |
java.lang.SecurityManager.checkMulticast(InetAddress, byte)
Use #checkPermission(java.security.Permission) instead
|
java.lang.SecurityManager.checkSystemClipboardAccess()
The dependency on
AWTPermission creates an
impediment to future modularization of the Java platform.
Users of this method should instead invoke
SecurityManager.checkPermission(java.security.Permission) directly.
This method will be changed in a future release to check
the permission java.security.AllPermission . |
java.lang.SecurityManager.checkTopLevelWindow(Object)
The dependency on
AWTPermission creates an
impediment to future modularization of the Java platform.
Users of this method should instead invoke
SecurityManager.checkPermission(java.security.Permission) directly.
This method will be changed in a future release to check
the permission java.security.AllPermission . |
java.lang.SecurityManager.classDepth(String)
This type of security checking is not recommended.
It is recommended that the
checkPermission
call be used instead. |
java.lang.SecurityManager.classLoaderDepth()
This type of security checking is not recommended.
It is recommended that the
checkPermission
call be used instead. |
com.codename1.ui.Font.clearBitmapCache()
bitmap font functionality is now deprecated
|
com.sun.lwuit.animations.Transition.copy()
use the version that accepts boolean instead
|
java.lang.Thread.countStackFrames()
The definition of this call depends on
Thread.suspend() ,
which is deprecated. Further, the results of this call
were never well-defined. |
com.codename1.components.FileEncodedImageAsync.create(String, byte[], int, int)
use the version that accepts a name and a placeholderImage
|
com.codename1.ui.Font.createBitmapFont(Image, int[], int[], String)
bitmap font functionality is now deprecated
|
com.codename1.ui.Font.createBitmapFont(String, Image, int[], int[], String)
bitmap font functionality is now deprecated
|
com.sun.lwuit.animations.Motion.createFrictionMotion(int, float, float)
use the version of this method that accepts a maximum value
|
com.codename1.ui.Image.createImage(Object)
this method is deprecated as a warning! Don't use this method unless you actually
know what you are doing, if you are invoking this method without understanding the distinction
between native image and Codename One image then you are using the wrong method.
|
com.codename1.ui.Image.createIndexed(int, int, int[], byte[])
try to avoid using indexed images explicitly
|
com.codename1.media.MediaManager.createMediaRecorder(String)
see createMediaRecorder(String path, String mimeType) instead
|
com.codename1.ui.Display.createMediaRecorder(String) |
com.codename1.ui.EncodedImage.createMulti(int[], byte[][])
this method is meant for internal use only, it would be very expensive to use
this method for real applications. Its here for simulators and development purposes where
screen DPI/resolution can vary significantly in runtime (something that just doesn't happen on devices).
|
com.codename1.ui.tree.Tree.createNodeComponent(Object, int)
replaced with createNode, bindNodeListener and setNodeIcon
|
com.codename1.ui.plaf.Border.createRoundBorder(int, int)
the performance of round rect borders is REALLY slow, we recommend people use image borders
which are faster, more portable and better looking
|
com.codename1.ui.plaf.Border.createRoundBorder(int, int, boolean)
the performance of round rect borders is REALLY slow, we recommend people use image borders
which are faster, more portable and better looking
|
com.codename1.ui.plaf.Border.createRoundBorder(int, int, int)
the performance of round rect borders is REALLY slow, we recommend people use image borders
which are faster, more portable and better looking
|
com.codename1.ui.plaf.Border.createRoundBorder(int, int, int, boolean)
the performance of round rect borders is REALLY slow, we recommend people use image borders
which are faster, more portable and better looking
|
java.lang.SecurityManager.currentClassLoader()
This type of security checking is not recommended.
It is recommended that the
checkPermission
call be used instead. |
java.lang.SecurityManager.currentLoadedClass()
This type of security checking is not recommended.
It is recommended that the
checkPermission
call be used instead. |
java.net.URLDecoder.decode(String)
The resulting string may vary depending on the platform's
default encoding. Instead, use the decode(String,String) method
to specify the encoding.
|
java.lang.ClassLoader.defineClass(byte[], int, int)
Replaced by
defineClass(String, byte[], int, int) |
java.lang.Thread.destroy()
This method was originally designed to destroy this
thread without any cleanup. Any monitors it held would have
remained locked. However, the method was never implemented.
If if were to be implemented, it would be deadlock-prone in
much the manner of
Thread.suspend() . If the target thread held
a lock protecting a critical system resource when it was
destroyed, no thread could ever access this resource again.
If another thread ever attempted to lock this resource, deadlock
would result. Such deadlocks typically manifest themselves as
"frozen" processes. For more information, see
Why are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.rmi.server.Skeleton.dispatch(Remote, RemoteCall, int, long)
no replacement
|
java.rmi.server.RemoteCall.done()
no replacement
|
java.rmi.server.RemoteRef.done(RemoteCall)
1.2 style stubs no longer use this method. Instead of
using a sequence of method calls to the remote reference
(
newCall , invoke , and done ), a
stub uses a single method, invoke(Remote, Method, Object[],
int) , on the remote reference to carry out parameter
marshalling, remote method executing and unmarshalling of the return
value. |
java.net.URLEncoder.encode(String)
The resulting string may vary depending on the platform's
default encoding. Instead, use the encode(String,String)
method to specify the encoding.
|
com.codename1.io.Util.encodeBody(byte[])
use encodeUrl(char[]) instead
|
com.codename1.io.Util.encodeUrl(byte[])
use encodeUrl(char[]) instead
|
java.security.SignatureSpi.engineGetParameter(String) |
java.security.SignatureSpi.engineSetParameter(String, Object)
Replaced by
engineSetParameter . |
java.rmi.server.RemoteCall.executeCall()
no replacement
|
java.rmi.server.UnicastRemoteObject.exportObject(Remote)
This method is deprecated because it supports only static stubs.
Use
exportObject(Remote, port) or
exportObject(Remote, port, csf, ssf)
instead. |
com.codename1.ui.BrowserComponent.exposeInJavaScript(Object, String)
this doesn't work in most platforms see issue 459 for details, use the setBrowserNavigationCallback
method instead
|
com.codename1.ui.TextArea.getAbsoluteAlignment()
this method is redundant and no longer used
|
com.codename1.components.OnOffSwitch.getActionListeners()
use the version that returns a collection
|
com.codename1.ui.Button.getActionListeners()
use getListeners instead
|
com.codename1.ui.List.getActionListeners()
use getListeners instead
|
com.codename1.ui.list.ContainerList.getActionListeners()
use getListeners instead
|
java.security.Security.getAlgorithmProperty(String, String)
This method used to return the value of a proprietary
property in the master file of the "SUN" Cryptographic Service
Provider in order to determine how to parse algorithm-specific
parameters. Use the new provider-based and algorithm-independent
AlgorithmParameters and KeyFactory engine
classes (introduced in the J2SE version 1.2 platform) instead. |
com.codename1.ui.Label.getAlignment()
use Style.getAlignment instead
|
com.codename1.ui.TextArea.getAlignment()
use Style.getAlignment instead
|
com.sun.lwuit.util.Resources.getAnimation(String)
use getImage(String) instead
|
com.sun.lwuit.util.Resources.getAnimationResourceNames()
use getImageResourceNames instead
|
java.sql.CallableStatement.getBigDecimal(int, int)
use
getBigDecimal(int parameterIndex)
or getBigDecimal(String parameterName) |
java.sql.ResultSet.getBigDecimal(int, int)
Use
getBigDecimal(int columnIndex)
or getBigDecimal(String columnLabel) |
java.sql.ResultSet.getBigDecimal(String, int)
Use
getBigDecimal(int columnIndex)
or getBigDecimal(String columnLabel) |
com.codename1.ui.Font.getBitmapFont(String)
bitmap font functionality is now deprecated
|
java.lang.String.getBytes(int, int, byte[], int)
This method does not use the proper encoding. Use
getBytes() to use the default encoding.
|
java.sql.Time.getDate() |
java.util.Date.getDate()
As of JDK version 1.1,
replaced by
Calendar.get(Calendar.DAY_OF_MONTH) . |
java.sql.Time.getDay() |
java.util.Date.getDay()
As of JDK version 1.1,
replaced by
Calendar.get(Calendar.DAY_OF_WEEK) . |
java.net.URLConnection.getDefaultRequestProperty(String)
The instance specific getRequestProperty method
should be used after an appropriate instance of URLConnection
is obtained.
|
java.rmi.server.LogStream.getDefaultStream()
no replacement
|
com.sun.lwuit.plaf.Border.getEmpty()
use createEmpty instead
|
com.codename1.ui.plaf.Border.getEmpty()
use createEmpty instead
|
com.sun.lwuit.plaf.Border.getFocusedInstance()
use the getSelectedStyle() method in the component class
|
com.codename1.ui.plaf.Border.getFocusedInstance()
use the getSelectedStyle() method in the component class
|
java.sql.Date.getHours() |
java.util.Date.getHours()
As of JDK version 1.1,
replaced by
Calendar.get(Calendar.HOUR_OF_DAY) . |
com.codename1.payment.Purchase.getInAppPurchase(boolean)
use the version that takes no arguments
|
com.codename1.ui.Display.getInAppPurchase(boolean)
use the version that accepts no arguments, the physical goods purchase is always
manual payment if applicable
|
java.lang.SecurityManager.getInCheck()
This type of security checking is not recommended.
It is recommended that the
checkPermission
call be used instead. |
java.rmi.server.RemoteCall.getInputStream()
no replacement
|
com.sun.lwuit.Display.getKeyCode(int)
this method doesn't work properly across device and is mocked up here
mostly for the case of unit testing. Do not use it for anything other than that! Do
not rely on getKeyCode(GAME_*) == keyCodeFromKeyEvent, this will never actually happen!
|
com.codename1.ui.Display.getKeyCode(int)
this method doesn't work properly across device and is mocked up here
mostly for the case of unit testing. Do not use it for anything other than that! Do
not rely on getKeyCode(GAME_*) == keyCodeFromKeyEvent, this will never actually happen!
|
com.codename1.facebook.Post.getLinkName()
use getName() instead
|
com.codename1.ui.util.EventDispatcher.getListenerVector()
use getListenerCollection instead, this method will now be VERY SLOW
|
java.lang.Runtime.getLocalizedInputStream(InputStream)
As of JDK 1.1, the preferred way to translate a byte
stream in the local encoding into a character stream in Unicode is via
the
InputStreamReader and BufferedReader
classes. |
java.lang.Runtime.getLocalizedOutputStream(OutputStream)
As of JDK 1.1, the preferred way to translate a
Unicode character stream into a byte stream in the local encoding is via
the
OutputStreamWriter , BufferedWriter , and
PrintWriter classes. |
java.sql.DriverManager.getLogStream()
Use
getLogWriter |
com.codename1.location.Location.getLongtitude()
use getLongitude
|
com.codename1.media.MediaManager.getMediaRecorderingMimeType()
see getAvailableRecordingMimeTypes() instead
|
com.codename1.ui.Display.getMediaRecorderingMimeType()
see getAvailableRecordingMimeTypes() instead
|
java.sql.Date.getMinutes() |
java.util.Date.getMinutes()
As of JDK version 1.1,
replaced by
Calendar.get(Calendar.MINUTE) . |
java.sql.Time.getMonth() |
java.util.Date.getMonth()
As of JDK version 1.1,
replaced by
Calendar.get(Calendar.MONTH) . |
java.rmi.server.Operation.getOperation()
no replacement
|
java.rmi.server.Skeleton.getOperations()
no replacement
|
java.rmi.server.LogStream.getOutputStream()
no replacement
|
java.rmi.server.RemoteCall.getOutputStream()
no replacement
|
java.security.Signature.getParameter(String) |
com.codename1.ui.plaf.UIManager.getResourceBundle()
this method uses the old resource bundle hashtable, use the new getBundle() method
|
com.codename1.io.ConnectionRequest.getResposeCode()
misspelled method name please use getResponseCode
|
java.rmi.server.RemoteCall.getResultStream(boolean)
no replacement
|
java.sql.Date.getSeconds() |
java.util.Date.getSeconds()
As of JDK version 1.1,
replaced by
Calendar.get(Calendar.SECOND) . |
java.rmi.server.LoaderHandler.getSecurityContext(ClassLoader)
no replacement
|
java.rmi.server.RMIClassLoader.getSecurityContext(ClassLoader)
no replacement. As of the Java 2 platform v1.2, RMI no
longer uses this method to obtain a class loader's security context.
|
java.util.Date.getTimezoneOffset()
As of JDK version 1.1,
replaced by
-(Calendar.get(Calendar.ZONE_OFFSET) +
Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000) . |
com.codename1.ui.Form.getTitleArea()
this method was exposed to allow some hacks, you are advised not to use it.
There are some alternatives such as command behavior (thru Display or the theme constants)
|
java.net.DatagramSocketImpl.getTTL()
use getTimeToLive instead.
|
java.net.MulticastSocket.getTTL()
use the getTimeToLive method instead, which returns
an int instead of a byte.
|
java.sql.ResultSet.getUnicodeStream(int)
use
getCharacterStream in place of
getUnicodeStream |
java.sql.ResultSet.getUnicodeStream(String)
use
getCharacterStream instead |
java.sql.Time.getYear() |
java.util.Date.getYear()
As of JDK version 1.1,
replaced by
Calendar.get(Calendar.YEAR) - 1900 . |
com.codename1.ui.util.Effects.growShrink(Component, int)
use Component.growShrink instead
|
java.lang.SecurityManager.inClass(String)
This type of security checking is not recommended.
It is recommended that the
checkPermission
call be used instead. |
java.lang.SecurityManager.inClassLoader()
This type of security checking is not recommended.
It is recommended that the
checkPermission
call be used instead. |
com.codename1.ui.Tabs.insertTab(Button, Component, int)
should use radio button as an argument
|
com.codename1.io.Util.instanceofByteArray(Object)
this method serves as a temporary workaround for an XMLVM bug and will be removed
once the bug is fixed
|
com.codename1.io.Util.instanceofDoubleArray(Object)
this method serves as a temporary workaround for an XMLVM bug and will be removed
once the bug is fixed
|
com.codename1.io.Util.instanceofFloatArray(Object)
this method serves as a temporary workaround for an XMLVM bug and will be removed
once the bug is fixed
|
com.codename1.io.Util.instanceofIntArray(Object)
this method serves as a temporary workaround for an XMLVM bug and will be removed
once the bug is fixed
|
com.codename1.io.Util.instanceofLongArray(Object)
this method serves as a temporary workaround for an XMLVM bug and will be removed
once the bug is fixed
|
com.codename1.io.Util.instanceofObjArray(Object)
this method serves as a temporary workaround for an XMLVM bug and will be removed
once the bug is fixed
|
com.codename1.io.Util.instanceofShortArray(Object)
this method serves as a temporary workaround for an XMLVM bug and will be removed
once the bug is fixed
|
java.rmi.server.RemoteRef.invoke(RemoteCall)
1.2 style stubs no longer use this method. Instead of
using a sequence of method calls to the remote reference
(
newCall , invoke , and done ), a
stub uses a single method, invoke(Remote, Method, Object[],
int) , on the remote reference to carry out parameter
marshalling, remote method executing and unmarshalling of the return
value. |
com.codename1.ui.layouts.BorderLayout.isAbsoluteCenter()
use center behavior instead
|
com.sun.lwuit.util.Resources.isAnimation(String)
animations are no longer distinguished from images in the resource file, use Image.isAnimation instead
|
com.codename1.ui.util.Resources.isAnimation(String)
animations are no longer distinguished from images in the resource file, use Image.isAnimation instead
|
com.sun.lwuit.Component.isBorderPainted()
use getStyle().getBorder() != null
|
com.sun.lwuit.Command.isDefaultAction()
this functionality is no longer supported use Form.setDefaultCommand() instead
|
com.codename1.ui.Component.isDragRegion(int, int)
replaced with getDragRegionStatus
|
com.codename1.ui.Form.isDragRegion(int, int)
this method was replaced by getDragRegionStatus
|
com.sun.lwuit.Component.isFocusPainted()
this method would be removed in a future version of the API, manipulate getSelectedStyle()
to achieve a similar look
|
java.awt.Component.isFocusTraversable()
As of 1.4, replaced by
isFocusable() . |
java.lang.Character.isJavaLetter(char)
Replaced by isJavaIdentifierStart(char).
|
java.lang.Character.isJavaLetterOrDigit(char)
Replaced by isJavaIdentifierPart(char).
|
com.sun.lwuit.Display.isLightMode()
this method is no longer used, it was too unreliable
|
com.codename1.ui.Display.isNativeCommands()
use getCommandBehavior() == Display.COMMAND_BEHAVIOR_NATIVE
|
java.lang.Character.isSpace(char)
Replaced by isWhitespace(char).
|
com.codename1.ui.plaf.LookAndFeel.isTouchMenus()
use Display.getCommandBehavior() == Display.COMMAND_BEHAVIOR_TOUCH_MENU
|
java.rmi.dgc.VMID.isUnique() |
java.rmi.server.LoaderHandler.loadClass(String)
no replacement
|
java.rmi.server.RMIClassLoader.loadClass(String)
replaced by
loadClass(String,String) method |
java.rmi.server.LoaderHandler.loadClass(URL, String)
no replacement
|
java.rmi.server.LogStream.log(String)
no replacement
|
java.util.logging.Logger.logrb(Level, String, String, String, String) |
java.util.logging.Logger.logrb(Level, String, String, String, String, Object) |
java.util.logging.Logger.logrb(Level, String, String, String, String, Object[]) |
java.util.logging.Logger.logrb(Level, String, String, String, String, Throwable) |
java.rmi.server.RemoteRef.newCall(RemoteObject, Operation[], int, long)
1.2 style stubs no longer use this method. Instead of
using a sequence of method calls on the stub's the remote reference
(
newCall , invoke , and done ), a
stub uses a single method, invoke(Remote, Method, Object[],
int) , on the remote reference to carry out parameter
marshalling, remote method executing and unmarshalling of the return
value. |
javax.xml.stream.XMLEventFactory.newInstance(String, ClassLoader)
This method has been deprecated to maintain API consistency.
All newInstance methods have been replaced with corresponding
newFactory methods. The replacement
XMLEventFactory.newFactory(java.lang.String, java.lang.ClassLoader)
method defines no changes in behavior. |
javax.xml.stream.XMLInputFactory.newInstance(String, ClassLoader)
This method has been deprecated to maintain API consistency.
All newInstance methods have been replaced with corresponding
newFactory methods. The replacement
XMLInputFactory.newFactory(java.lang.String, java.lang.ClassLoader) method
defines no changes in behavior. |
javax.xml.stream.XMLOutputFactory.newInstance(String, ClassLoader)
This method has been deprecated because it returns an
instance of XMLInputFactory, which is of the wrong class.
Use the new method
XMLOutputFactory.newFactory(java.lang.String,
java.lang.ClassLoader) instead. |
java.awt.Component.nextFocus()
As of JDK version 1.1,
replaced by transferFocus().
|
com.codename1.ui.Display.notifyStatusBar(String, String, String, boolean, boolean)
there is a new version of this method with a slightly improved
signature
|
com.codename1.ui.Display.numAlphaLevels()
this method isn't implemented in most modern devices
|
com.codename1.ui.Display.numColors()
this method isn't implemented in most modern devices
|
com.codename1.io.JSONParser.parse(Reader)
use the new parseJSON instead
|
java.util.Date.parse(String)
As of JDK version 1.1,
replaced by
DateFormat.parse(String s) . |
java.rmi.server.LogStream.parseLevel(String)
no replacement
|
com.codename1.ui.Dialog.placeButtonCommands(Command[])
this method shouldn't be invoked externally, it should have been private
|
java.io.DataInputStream.readLine()
This method does not properly convert bytes to characters.
As of JDK 1.1, the preferred way to read lines of text is via the
BufferedReader.readLine() method. Programs that use the
DataInputStream class to read lines can be converted to use
the BufferedReader class by replacing code of the form:
with:DataInputStream d = new DataInputStream(in); BufferedReader d = new BufferedReader(new InputStreamReader(in)); |
java.io.ObjectInputStream.readLine()
This method does not properly convert bytes to characters.
see DataInputStream for the details and alternatives.
|
com.codename1.ui.Display.registerPush(String, boolean)
use the version that doesn't take an id argument this argument is effectively ignored!
|
java.rmi.registry.RegistryHandler.registryImpl(int)
no replacement. As of the Java 2 platform v1.2, RMI no
longer uses the
RegistryHandler to obtain the registry's
implementation. |
java.rmi.registry.RegistryHandler.registryStub(String, int)
no replacement. As of the Java 2 platform v1.2, RMI no
longer uses the
RegistryHandler to obtain the registry's
stub. |
java.rmi.server.RemoteCall.releaseInputStream()
no replacement
|
java.rmi.server.RemoteCall.releaseOutputStream()
no replacement
|
java.util.jar.Pack200.Packer.removePropertyChangeListener(PropertyChangeListener)
The dependency on
PropertyChangeListener creates
a significant impediment to future modularization of the
Java platform. This method will be removed in a future
release. |
java.util.jar.Pack200.Unpacker.removePropertyChangeListener(PropertyChangeListener)
The dependency on
PropertyChangeListener creates
a significant impediment to future modularization of the
Java platform. This method will be removed in a future
release. |
java.util.logging.LogManager.removePropertyChangeListener(PropertyChangeListener)
The dependency on
PropertyChangeListener creates a
significant impediment to future modularization of the Java
platform. This method will be removed in a future release.
The global LogManager can detect changes to the
logging configuration by overridding the readConfiguration method. |
com.codename1.ui.Tabs.removeTabsFocusListener(FocusListener)
use addSelectionListener instead
|
java.lang.Thread.resume()
This method exists solely for use with
Thread.suspend() ,
which has been deprecated because it is deadlock-prone.
For more information, see
Why
are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.lang.ThreadGroup.resume()
This method is used solely in conjunction with
Thread.suspend and ThreadGroup.suspend,
both of which have been deprecated, as they are inherently
deadlock-prone. See
Thread.suspend() for details. |
java.lang.Runtime.runFinalizersOnExit(boolean)
This method is inherently unsafe. It may result in
finalizers being called on live objects while other threads are
concurrently manipulating those objects, resulting in erratic
behavior or deadlock.
|
java.lang.System.runFinalizersOnExit(boolean)
running the finalizers is unsafe, therefore this
method is deprecated.
|
java.util.Properties.save(OutputStream, String)
This method does not throw an IOException if an I/O error
occurs while saving the property list. The preferred way to save a
properties list is via the
store(OutputStream out,
String comments) method or the
storeToXML(OutputStream os, String comment) method. |
com.sun.lwuit.Image.scale(int, int)
scale should return an image rather than modify the image in place
use scaled(int, int) instead
|
com.sun.lwuit.ScaledImage.scale(int, int) |
com.codename1.ui.Image.scale(int, int)
scale should return an image rather than modify the image in place
use scaled(int, int) instead
|
com.codename1.ui.ScaledImage.scale(int, int) |
java.net.MulticastSocket.send(DatagramPacket, byte)
Use the following code or its equivalent instead:
......
int ttl = mcastSocket.getTimeToLive();
mcastSocket.setTimeToLive(newttl);
mcastSocket.send(p);
mcastSocket.setTimeToLive(ttl);
......
|
com.codename1.ui.layouts.BorderLayout.setAbsoluteCenter(boolean)
use center behavior instead
|
com.codename1.ui.Button.setAlignment(int)
use the Style alignment instead
|
com.codename1.ui.Label.setAlignment(int)
use Style.setAlignment instead
|
com.codename1.ui.TextArea.setAlignment(int)
use Style.setAlignment instead
|
com.codename1.ui.Form.setBgImage(Image)
Use the style directly
|
com.sun.lwuit.Component.setBorderPainted(boolean)
use getStyle().setBorder() to null to disable borders or install
a different border
|
com.sun.lwuit.Form.setCommandListener(ActionListener)
use add/removeCommandListener instead
|
java.sql.Time.setDate(int) |
java.util.Date.setDate(int)
As of JDK version 1.1,
replaced by
Calendar.set(Calendar.DAY_OF_MONTH, int date) . |
com.sun.lwuit.Command.setDefaultAction(boolean)
this functionality is no longer supported use Form.setDefaultCommand() instead
|
java.net.URLConnection.setDefaultRequestProperty(String, String)
The instance specific setRequestProperty method
should be used after an appropriate instance of URLConnection
is obtained. Invoking this method will have no effect.
|
java.rmi.server.LogStream.setDefaultStream(PrintStream)
no replacement
|
com.sun.lwuit.Display.setFlashGraphicsBug(boolean)
this method is no longer supported use GameCanvasImplementation.setFlashGraphicsBug(f) instead
|
com.codename1.ui.Component.setFocus(boolean)
this method shouldn't be invoked by user code, use requestFocus() instead
|
com.sun.lwuit.plaf.Border.setFocusedInstance(Border)
use the getSelectedStyle() method in the component class
|
com.codename1.ui.plaf.Border.setFocusedInstance(Border)
use the getSelectedStyle() method in the component class
|
java.sql.Date.setHours(int) |
java.util.Date.setHours(int)
As of JDK version 1.1,
replaced by
Calendar.set(Calendar.HOUR_OF_DAY, int hours) . |
com.codename1.ui.Component.setIsScrollVisible(boolean)
replaced by setScrollVisible to match the JavaBeans spec
|
com.sun.lwuit.Display.setLightMode(boolean)
this method is no longer used, it was too unreliable
|
com.codename1.ui.List.setListCellRenderer(ListCellRenderer)
use setRenderer instead, this method was deprecated to confirm
better to JavaBean convention of having the getter/setter with the same name
|
java.sql.DriverManager.setLogStream(PrintStream)
Use
setLogWriter |
com.codename1.location.Location.setLongtitude(double)
use setLongitude
|
com.sun.lwuit.Form.setMenuStyle(Style)
use setSoftButtonStyle instead
|
java.sql.Date.setMinutes(int) |
java.util.Date.setMinutes(int)
As of JDK version 1.1,
replaced by
Calendar.set(Calendar.MINUTE, int minutes) . |
java.awt.event.KeyEvent.setModifiers(int)
as of JDK1.1.4
|
java.sql.Time.setMonth(int) |
java.util.Date.setMonth(int)
As of JDK version 1.1,
replaced by
Calendar.set(Calendar.MONTH, int month) . |
com.codename1.ui.Display.setNativeCommands(boolean)
use setCommandBehavior(Display.COMMAND_BEHAVIOR_NATIVE)
|
java.rmi.server.LogStream.setOutputStream(OutputStream)
no replacement
|
java.security.Signature.setParameter(String, Object)
Use
setParameter . |
java.rmi.server.RemoteStub.setRef(RemoteStub, RemoteRef)
No replacement. The
setRef method
was intended for setting the remote reference of a remote
stub. This is unnecessary, since RemoteStub s can be created
and initialized with a remote reference through use of
the RemoteStub.RemoteStub(RemoteRef) constructor. |
com.codename1.ui.plaf.UIManager.setResourceBundle(Hashtable)
this method uses the old resource bundle hashtable, use the new setBundle() method
|
com.codename1.ui.util.Resources.setRuntimeMultiImageEnabled(boolean)
do not use this method!
|
java.sql.Date.setSeconds(int) |
java.util.Date.setSeconds(int)
As of JDK version 1.1,
replaced by
Calendar.set(Calendar.SECOND, int seconds) . |
com.sun.lwuit.Component.setStyle(Style) |
com.codename1.ui.Form.setTitleStyle(Style)
this method doesn't take into consideration multiple styles
|
com.codename1.ui.plaf.LookAndFeel.setTouchMenus(boolean)
use Display.setCommandBehavior(Display.COMMAND_BEHAVIOR_TOUCH_MENU)
|
java.net.DatagramSocketImpl.setTTL(byte)
use setTimeToLive instead.
|
java.net.MulticastSocket.setTTL(byte)
use the setTimeToLive method instead, which uses
int instead of byte as the type for ttl.
|
java.sql.PreparedStatement.setUnicodeStream(int, InputStream, int)
Use
setCharacterStream |
com.sun.lwuit.Component.setUnSelectedStyle(Style)
use setUnselectedStyle (the case of the S character in this method is incorrect)
|
java.net.URLStreamHandler.setURL(URL, String, String, int, String, String)
Use setURL(URL, String, String, int, String, String, String,
String);
|
java.sql.Time.setYear(int) |
java.util.Date.setYear(int)
As of JDK version 1.1,
replaced by
Calendar.set(Calendar.YEAR, year + 1900) . |
com.codename1.ui.Display.share(String)
use the method share that accepts an image and mime type
|
com.codename1.ui.Dialog.show(int, int, int, int, boolean)
use the version that doesn't accept the include title, the includeTitle
feature is no longer supported
|
com.codename1.ui.Dialog.show(int, int, int, int, boolean, boolean)
use showAtPosition, the includeTitle flag is no longer supported
|
com.codename1.ui.Dialog.showStetched(String, boolean)
due to typo use showStretched instead
|
java.lang.Thread.stop()
This method is inherently unsafe. Stopping a thread with
Thread.stop causes it to unlock all of the monitors that it
has locked (as a natural consequence of the unchecked
ThreadDeath exception propagating up the stack). If
any of the objects previously protected by these monitors were in
an inconsistent state, the damaged objects become visible to
other threads, potentially resulting in arbitrary behavior. Many
uses of stop 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), the interrupt method should be used to
interrupt the wait.
For more information, see
Why
are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.lang.ThreadGroup.stop()
This method is inherently unsafe. See
Thread.stop() for details. |
java.lang.Thread.stop(Throwable)
This method was originally designed to force a thread to stop
and throw a given
Throwable as an exception. It was
inherently unsafe (see Thread.stop() for details), and furthermore
could be used to generate exceptions that the target thread was
not prepared to handle.
For more information, see
Why
are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.lang.Thread.suspend()
This method has been deprecated, as it is
inherently deadlock-prone. If the target thread holds a lock on the
monitor protecting a critical system resource when it is suspended, no
thread can access this resource until the target thread is resumed. If
the thread that would resume the target thread attempts to lock this
monitor prior to calling
resume , deadlock results. Such
deadlocks typically manifest themselves as "frozen" processes.
For more information, see
Why
are Thread.stop, Thread.suspend and Thread.resume Deprecated?. |
java.lang.ThreadGroup.suspend()
This method is inherently deadlock-prone. See
Thread.suspend() for details. |
java.util.Date.toGMTString()
As of JDK version 1.1,
replaced by
DateFormat.format(Date date) , using a
GMT TimeZone . |
com.codename1.util.StringUtil.tokenizeString(String, char)
use the tokenize() method instead
|
com.codename1.util.StringUtil.tokenizeString(String, String)
use the tokenize() method instead
|
java.util.Date.toLocaleString()
As of JDK version 1.1,
replaced by
DateFormat.format(Date date) . |
java.rmi.server.LogStream.toString()
no replacement
|
java.rmi.server.Operation.toString()
no replacement
|
java.io.ByteArrayOutputStream.toString(int)
This method does not properly convert bytes into characters.
As of JDK 1.1, the preferred way to do this is via the
toString(String enc) method, which takes an encoding-name
argument, or the toString() method, which uses the
platform's default character encoding. |
java.io.File.toURL() |
java.util.Date.UTC(int, int, int, int, int, int)
As of JDK version 1.1,
replaced by
Calendar.set(year + 1900, month, date,
hrs, min, sec) or GregorianCalendar(year + 1900,
month, date, hrs, min, sec) , using a UTC
TimeZone , followed by Calendar.getTime().getTime() . |
java.rmi.server.LogStream.write(byte[], int, int)
no replacement
|
java.rmi.server.LogStream.write(int)
no replacement
|
java.io.ObjectOutputStream.PutField.write(ObjectOutput)
This method does not write the values contained by this
PutField object in a proper format, and may
result in corruption of the serialization stream. The
correct way to write PutField data is by
calling the ObjectOutputStream.writeFields()
method. |
Constructor and Description |
---|
com.sun.lwuit.Command(String, boolean)
this functionality is no longer supported use Form.setDefaultCommand() instead
|
com.sun.lwuit.Command(String, int, boolean)
this functionality is no longer supported use Form.setDefaultCommand() instead
|
java.sql.Date(int, int, int)
instead use the constructor
Date(long date) |
java.util.Date(int, int, int)
As of JDK version 1.1,
replaced by
Calendar.set(year + 1900, month, date)
or GregorianCalendar(year + 1900, month, date) . |
java.util.Date(int, int, int, int, int)
As of JDK version 1.1,
replaced by
Calendar.set(year + 1900, month, date,
hrs, min) or GregorianCalendar(year + 1900,
month, date, hrs, min) . |
java.util.Date(int, int, int, int, int, int)
As of JDK version 1.1,
replaced by
Calendar.set(year + 1900, month, date,
hrs, min, sec) or GregorianCalendar(year + 1900,
month, date, hrs, min, sec) . |
java.util.Date(String)
As of JDK version 1.1,
replaced by
DateFormat.parse(String s) . |
com.sun.lwuit.IndexedImage(int, int, int[], byte[])
use Image.createIndexed instead
|
java.awt.event.KeyEvent(Component, int, long, int, int)
as of JDK1.1
|
java.rmi.server.Operation(String)
no replacement
|
java.rmi.RMISecurityException(String)
no replacement
|
java.rmi.RMISecurityException(String, String)
no replacement
|
java.rmi.ServerRuntimeException(String, Exception)
no replacement
|
java.rmi.server.SkeletonMismatchException(String)
no replacement
|
java.net.Socket(InetAddress, int, boolean)
Use DatagramSocket instead for UDP transport.
|
java.net.Socket(String, int, boolean)
Use DatagramSocket instead for UDP transport.
|
java.io.StreamTokenizer(InputStream)
As of JDK version 1.1, the preferred way to tokenize an
input stream is to convert it into a character stream, for example:
Reader r = new BufferedReader(new InputStreamReader(is)); StreamTokenizer st = new StreamTokenizer(r); |
java.lang.String(byte[], int)
This method does not properly convert bytes into
characters. As of JDK 1.1, the preferred way to do this is via the
String constructors that take a Charset , charset name, or that use the platform's
default charset. |
java.lang.String(byte[], int, int, int)
This method does not properly convert bytes into characters.
As of JDK 1.1, the preferred way to do this is via the
String constructors that take a Charset , charset name, or that use the platform's
default charset. |
java.sql.Time(int, int, int)
Use the constructor that takes a milliseconds value
in place of this constructor
|
java.sql.Timestamp(int, int, int, int, int, int, int)
instead use the constructor
Timestamp(long millis) |