JavaTM 2 Platform
Standard Ed. 5.0

Deprecated API


Contents
Deprecated Interfaces
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 2 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. 
org.omg.CORBA.DynAny
          Use the new DynAny instead 
org.omg.CORBA.DynArray
          Use the new DynArray instead 
org.omg.CORBA.DynEnum
          Use the new DynEnum instead 
org.omg.CORBA.DynFixed
          Use the new DynFixed instead 
org.omg.CORBA.DynSequence
          Use the new DynSequence instead 
org.omg.CORBA.DynStruct
          Use the new DynStruct instead 
org.omg.CORBA.DynUnion
          Use the new DynUnion instead 
org.omg.CORBA.DynValue
          Use the new DynValue instead 
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.Skeleton
          no replacement. Skeletons are no longer required for remote method calls in the Java 2 platform v1.2 and greater. 
 

Deprecated Classes
javax.accessibility.AccessibleResourceBundle
          This class is deprecated as of version 1.3 of the Java 2 Platform. 
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. 
javax.management.DefaultLoaderRepository
          Use MBeanServer.getClassLoaderRepository() instead. 
javax.management.loading.DefaultLoaderRepository
          Use MBeanServer.getClassLoaderRepository()} instead. 
javax.swing.text.DefaultTextUI
            
org.omg.CORBA.DynamicImplementation
          org.omg.CORBA.DynamicImplementation 
org.xml.sax.HandlerBase
          This class works with the deprecated DocumentHandler interface. It has been replaced by the SAX2 DefaultHandler class. 
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. 
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 
javax.swing.plaf.metal.MetalComboBoxUI.MetalComboPopup
          As of Java 2 platform v1.4. 
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.
 
org.omg.CORBA.Principal
          Deprecated by CORBA 2.2. 
org.omg.CORBA.PrincipalHolder
          Deprecated by CORBA 2.2. 
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. 
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. 
javax.swing.text.TableView.TableCell
          A table cell can now be any View implementation. 
javax.management.timer.TimerAlarmClockNotification
          This class is of no use to user code. It is retained purely for compatibility reasons. 
 

Deprecated Exceptions
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. 
 

Deprecated Fields
javax.management.monitor.Monitor.alreadyNotified
          equivalent to Monitor.alreadyNotifieds[0]. 
javax.swing.JViewport.backingStore
          As of Java 2 platform v1.3 
javax.swing.plaf.basic.BasicDesktopPaneUI.closeKey
          As of 1.3. 
java.awt.Frame.CROSSHAIR_CURSOR
          replaced by Cursor.CROSSHAIR_CURSOR. 
javax.management.monitor.Monitor.dbgTag
          No replacement. 
java.awt.Frame.DEFAULT_CURSOR
          replaced by Cursor.DEFAULT_CURSOR. 
javax.swing.JRootPane.defaultPressAction
          As of Java 2 platform v1.3. 
javax.swing.JRootPane.defaultReleaseAction
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.dividerResizeToggleKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicToolBarUI.downKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicTabbedPaneUI.downKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.downKey
          As of Java 2 platform v1.3. 
java.awt.Frame.E_RESIZE_CURSOR
          replaced by Cursor.E_RESIZE_CURSOR. 
javax.swing.plaf.basic.BasicSplitPaneUI.endKey
          As of Java 2 platform v1.3. 
java.awt.Frame.HAND_CURSOR
          replaced by Cursor.HAND_CURSOR. 
javax.swing.plaf.basic.BasicSplitPaneUI.homeKey
          As of Java 2 platform v1.3. 
java.net.HttpURLConnection.HTTP_SERVER_ERROR
          it is misplaced and shouldn't have existed. 
java.lang.SecurityManager.inCheck
          This type of security checking is not recommended. It is recommended that the checkPermission call be used instead. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardDownRightListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardEndListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardHomeListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardResizeToggleListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardUpLeftListener
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicToolBarUI.leftKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicTabbedPaneUI.leftKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.leftKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicDesktopPaneUI.maximizeKey
          As of 1.3. 
javax.swing.plaf.basic.BasicDesktopPaneUI.minimizeKey
          As of 1.3. 
java.awt.Frame.MOVE_CURSOR
          replaced by Cursor.MOVE_CURSOR. 
java.awt.Frame.N_RESIZE_CURSOR
          replaced by Cursor.N_RESIZE_CURSOR. 
javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey
          As of 1.3. 
javax.swing.plaf.basic.BasicDesktopPaneUI.navigateKey2
          As of 1.3. 
java.awt.Frame.NE_RESIZE_CURSOR
          replaced by Cursor.NE_RESIZE_CURSOR. 
java.awt.Frame.NW_RESIZE_CURSOR
          replaced by Cursor.NW_RESIZE_CURSOR. 
javax.swing.plaf.basic.BasicInternalFrameUI.openMenuKey
          As of Java 2 platform v1.3. 
java.awt.datatransfer.DataFlavor.plainTextFlavor
          as of 1.3. Use DataFlavor.getReaderForText(Transferable) instead of Transferable.getTransferData(DataFlavor.plainTextFlavor). 
javax.swing.text.html.FormView.RESET
          As of 1.3, value comes from UIManager UIManager property FormView.resetButtonText 
javax.swing.table.TableColumn.resizedPostingDisableCount
          as of Java 2 platform v1.3 
javax.swing.plaf.basic.BasicToolBarUI.rightKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicTabbedPaneUI.rightKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.rightKey
          As of Java 2 platform v1.3. 
java.awt.Frame.S_RESIZE_CURSOR
          replaced by Cursor.S_RESIZE_CURSOR. 
java.awt.Frame.SE_RESIZE_CURSOR
          replaced by Cursor.SE_RESIZE_CURSOR. 
javax.swing.text.html.FormView.SUBMIT
          As of 1.3, value now comes from UIManager property FormView.submitButtonText 
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. 
java.awt.Frame.SW_RESIZE_CURSOR
          replaced by Cursor.SW_RESIZE_CURSOR. 
java.awt.Frame.TEXT_CURSOR
          replaced by Cursor.TEXT_CURSOR. 
javax.swing.plaf.basic.BasicToolBarUI.upKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicTabbedPaneUI.upKey
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.upKey
          As of Java 2 platform v1.3. 
java.awt.Frame.W_RESIZE_CURSOR
          replaced by Cursor.W_RESIZE_CURSOR. 
java.awt.Frame.WAIT_CURSOR
          replaced by Cursor.WAIT_CURSOR. 
 

Deprecated Methods
java.awt.Component.action(Event, Object)
          As of JDK version 1.1, should register this component as ActionListener on component which fires action events. 
java.awt.List.addItem(String)
          replaced by add(String). 
java.awt.List.addItem(String, int)
          replaced by add(String, int). 
java.awt.CardLayout.addLayoutComponent(String, Component)
          replaced by addLayoutComponent(Component, Object). 
java.awt.BorderLayout.addLayoutComponent(String, Component)
          replaced by addLayoutComponent(Component, Object). 
java.awt.List.allowsMultipleSelections()
          As of JDK version 1.1, replaced by isMultipleMode(). 
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. 
java.awt.TextArea.appendText(String)
          As of JDK version 1.1, replaced by append(String). 
java.awt.Window.applyResourceBundle(ResourceBundle)
          As of J2SE 1.4, replaced by Component.applyComponentOrientation. 
java.awt.Window.applyResourceBundle(String)
          As of J2SE 1.4, replaced by Component.applyComponentOrientation. 
java.awt.Component.bounds()
          As of JDK version 1.1, replaced by getBounds(). 
java.lang.SecurityManager.checkMulticast(InetAddress, byte)
          Use #checkPermission(java.security.Permission) instead 
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. 
java.awt.List.clear()
          As of JDK version 1.1, replaced by removeAll(). 
java.awt.image.renderable.RenderContext.concetenateTransform(AffineTransform)
          replaced by concatenateTransform(AffineTransform). 
java.awt.Container.countComponents()
          As of JDK version 1.1, replaced by getComponentCount(). 
java.awt.Choice.countItems()
          As of JDK version 1.1, replaced by getItemCount(). 
java.awt.List.countItems()
          As of JDK version 1.1, replaced by getItemCount(). 
java.awt.Menu.countItems()
          As of JDK version 1.1, replaced by getItemCount(). 
java.awt.MenuBar.countMenus()
          As of JDK version 1.1, replaced by getMenuCount(). 
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. 
org.omg.CORBA.ORB.create_basic_dyn_any(TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_any(Any)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_array(TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_enum(TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_sequence(TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_struct(TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_dyn_union(TypeCode)
          Use the new DynAnyFactory API instead 
org.omg.CORBA.ORB.create_recursive_sequence_tc(int, int)
          Use a combination of create_recursive_tc and create_sequence_tc instead 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardDownRightListener()
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardEndListener()
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardHomeListener()
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardResizeToggleListener()
          As of Java 2 platform v1.3. 
javax.swing.plaf.basic.BasicSplitPaneUI.createKeyboardUpLeftListener()
          As of Java 2 platform v1.3. 
javax.swing.JTable.createScrollPaneForTable(JTable)
          As of Swing version 1.0.2, replaced by new JScrollPane(aTable). 
javax.swing.text.TableView.createTableCell(Element)
          Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table. 
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.awt.List.delItem(int)
          replaced by remove(String) and remove(int). 
java.awt.List.delItems(int, int)
          As of JDK version 1.1, Not for public use in the future. This method is expected to be retained only as a package private method. 
java.awt.Component.deliverEvent(Event)
          As of JDK version 1.1, replaced by dispatchEvent(AWTEvent e). 
java.awt.Container.deliverEvent(Event)
          As of JDK version 1.1, replaced by dispatchEvent(AWTEvent e) 
javax.management.MBeanServer.deserialize(ObjectName, byte[])
          Use getClassLoaderFor to obtain the appropriate class loader for deserialization. 
javax.management.MBeanServer.deserialize(String, byte[])
          Use MBeanServer.getClassLoaderRepository() to obtain the class loader repository and use it to deserialize. 
javax.management.MBeanServer.deserialize(String, ObjectName, byte[])
          Use getClassLoader to obtain the class loader for deserialization. 
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.awt.MenuItem.disable()
          As of JDK version 1.1, replaced by setEnabled(boolean). 
java.awt.Component.disable()
          As of JDK version 1.1, replaced by setEnabled(boolean). 
javax.swing.JComponent.disable()
          As of JDK version 1.1, replaced by java.awt.Component.setEnabled(boolean). 
javax.swing.table.TableColumn.disableResizedPosting()
          as of Java 2 platform v1.3 
javax.swing.FocusManager.disableSwingFocusManager()
          as of 1.4, replaced by KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy) 
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. 
javax.swing.plaf.metal.MetalComboBoxUI.editablePropertyChanged(PropertyChangeEvent)
          As of Java 2 platform v1.4. 
java.awt.MenuItem.enable()
          As of JDK version 1.1, replaced by setEnabled(boolean). 
java.awt.Component.enable()
          As of JDK version 1.1, replaced by setEnabled(boolean). 
javax.swing.JComponent.enable()
          As of JDK version 1.1, replaced by java.awt.Component.setEnabled(boolean). 
java.awt.MenuItem.enable(boolean)
          As of JDK version 1.1, replaced by setEnabled(boolean). 
java.awt.Component.enable(boolean)
          As of JDK version 1.1, replaced by setEnabled(boolean). 
javax.swing.table.TableColumn.enableResizedPosting()
          as of Java 2 platform v1.3 
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. 
java.security.SignatureSpi.engineGetParameter(String)
            
java.security.SignatureSpi.engineSetParameter(String, Object)
          Replaced by engineSetParameter. 
java.awt.datatransfer.DataFlavor.equals(String)
          As inconsistent with hashCode() contract, use isMimeTypeEqual(String) instead. 
org.omg.CORBA.ServerRequest.except(Any)
          use set_exception() 
java.rmi.server.RemoteCall.executeCall()
          no replacement 
org.omg.CORBA.Any.extract_Principal()
          Deprecated by CORBA 2.2. 
javax.swing.SwingUtilities.findFocusOwner(Component)
          As of 1.4, replaced by KeyboardFocusManager.getFocusOwner(). 
org.omg.CORBA.ORB.get_current()
          use resolve_initial_references. 
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 Java 2 platform) instead. 
java.sql.CallableStatement.getBigDecimal(int, int)
          use getBigDecimal(int parameterIndex) or getBigDecimal(String parameterName) 
java.sql.ResultSet.getBigDecimal(int, int)
            
java.sql.ResultSet.getBigDecimal(String, int)
            
java.awt.Polygon.getBoundingBox()
          As of JDK version 1.1, replaced by getBounds(). 
java.lang.String.getBytes(int, int, byte[], int)
          This method does not properly convert characters into bytes. As of JDK 1.1, the preferred way to do this is via the getBytes() method, which uses the platform's default charset. 
java.awt.Graphics.getClipRect()
          As of JDK version 1.1, replaced by getClipBounds(). 
javax.swing.JPopupMenu.getComponentAtIndex(int)
          replaced by getComponent(int i) 
javax.swing.JMenuBar.getComponentAtIndex(int)
          replaced by getComponent(int i) 
java.awt.CheckboxGroup.getCurrent()
          As of JDK version 1.1, replaced by getSelectedCheckbox(). 
java.awt.Frame.getCursorType()
          As of JDK version 1.1, replaced by Component.getCursor(). 
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 
javax.management.monitor.StringMonitorMBean.getDerivedGauge()
          As of JMX 1.2, replaced by StringMonitorMBean.getDerivedGauge(ObjectName) 
javax.management.monitor.StringMonitor.getDerivedGauge()
          As of JMX 1.2, replaced by StringMonitor.getDerivedGauge(ObjectName) 
javax.management.monitor.CounterMonitorMBean.getDerivedGauge()
          As of JMX 1.2, replaced by CounterMonitorMBean.getDerivedGauge(ObjectName) 
javax.management.monitor.CounterMonitor.getDerivedGauge()
          As of JMX 1.2, replaced by CounterMonitor.getDerivedGauge(ObjectName) 
javax.management.monitor.GaugeMonitorMBean.getDerivedGauge()
          As of JMX 1.2, replaced by GaugeMonitorMBean.getDerivedGauge(ObjectName) 
javax.management.monitor.GaugeMonitor.getDerivedGauge()
          As of JMX 1.2, replaced by GaugeMonitor.getDerivedGauge(ObjectName) 
javax.management.monitor.StringMonitorMBean.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by StringMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.StringMonitor.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by StringMonitor.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by CounterMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by CounterMonitor.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.GaugeMonitorMBean.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by GaugeMonitorMBean.getDerivedGaugeTimeStamp(ObjectName) 
javax.management.monitor.GaugeMonitor.getDerivedGaugeTimeStamp()
          As of JMX 1.2, replaced by GaugeMonitor.getDerivedGaugeTimeStamp(ObjectName) 
javax.swing.plaf.basic.BasicSplitPaneUI.getDividerBorderSize()
          As of Java 2 platform v1.3, instead set the border on the divider. 
java.awt.Toolkit.getFontList()
          see GraphicsEnvironment.getAvailableFontFamilyNames() 
javax.swing.text.LabelView.getFontMetrics()
          FontMetrics are not used for glyph rendering when running in the JDK. 
java.awt.Toolkit.getFontMetrics(Font)
          As of JDK version 1.2, replaced by the Font method getLineMetrics. 
java.awt.Toolkit.getFontPeer(String, int)
          see java.awt.GraphicsEnvironment#getAllFonts 
java.sql.Date.getHours()
            
java.util.Date.getHours()
          As of JDK version 1.1, replaced by Calendar.get(Calendar.HOUR_OF_DAY). 
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 
javax.swing.KeyStroke.getKeyStroke(char, boolean)
          use getKeyStroke(char) 
javax.swing.AbstractButton.getLabel()
          - Replaced by getText 
java.awt.Scrollbar.getLineIncrement()
          As of JDK version 1.1, replaced by getUnitIncrement(). 
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()
            
java.awt.FontMetrics.getMaxDecent()
          As of JDK version 1.1.1, replaced by getMaxDescent(). 
javax.swing.JInternalFrame.getMenuBar()
          As of Swing version 1.0.3, replaced by getJMenuBar(). 
javax.swing.JRootPane.getMenuBar()
          As of Swing version 1.0.3 replaced by getJMenubar(). 
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). 
javax.swing.JComponent.getNextFocusableComponent()
          As of 1.4, replaced by FocusTraversalPolicy. 
javax.management.monitor.MonitorMBean.getObservedObject()
          As of JMX 1.2, replaced by MonitorMBean.getObservedObjects() 
javax.management.monitor.Monitor.getObservedObject()
          As of JMX 1.2, replaced by Monitor.getObservedObjects() 
java.rmi.server.Operation.getOperation()
          no replacement 
java.rmi.server.Skeleton.getOperations()
          no replacement 
java.awt.ComponentOrientation.getOrientation(ResourceBundle)
          As of J2SE 1.4, use ComponentOrientation.getOrientation(java.util.Locale). 
java.rmi.server.LogStream.getOutputStream()
          no replacement 
java.rmi.server.RemoteCall.getOutputStream()
          no replacement 
java.awt.Scrollbar.getPageIncrement()
          As of JDK version 1.1, replaced by getBlockIncrement(). 
java.security.Signature.getParameter(String)
            
java.awt.MenuComponent.getPeer()
          As of JDK version 1.1, programs should not directly manipulate peers. 
java.awt.Font.getPeer()
          Font rendering is now platform independent. 
java.awt.Component.getPeer()
          As of JDK version 1.1, programs should not directly manipulate peers; replaced by boolean isDisplayable(). 
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. 
javax.swing.JPasswordField.getText()
          As of Java 2 platform v1.2, replaced by getPassword. 
javax.swing.JPasswordField.getText(int, int)
          As of Java 2 platform v1.2, replaced by getPassword. 
javax.management.monitor.CounterMonitorMBean.getThreshold()
          As of JMX 1.2, replaced by CounterMonitorMBean.getThreshold(ObjectName) 
javax.management.monitor.CounterMonitor.getThreshold()
          As of JMX 1.2, replaced by CounterMonitor.getThreshold(ObjectName) 
java.util.Date.getTimezoneOffset()
          As of JDK version 1.1, replaced by -(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000). 
java.net.MulticastSocket.getTTL()
          use the getTimeToLive method instead, which returns an int instead of a byte. 
java.net.DatagramSocketImpl.getTTL()
          use getTimeToLive instead. 
java.sql.ResultSet.getUnicodeStream(int)
          use getCharacterStream in place of getUnicodeStream 
java.sql.ResultSet.getUnicodeStream(String)
          use getCharacterStream instead 
javax.swing.ScrollPaneLayout.getViewportBorderBounds(JScrollPane)
          As of JDK version Swing1.1 replaced by JScrollPane.getViewportBorderBounds(). 
java.awt.Scrollbar.getVisible()
          As of JDK version 1.1, replaced by getVisibleAmount(). 
java.sql.Time.getYear()
            
java.util.Date.getYear()
          As of JDK version 1.1, replaced by Calendar.get(Calendar.YEAR) - 1900. 
java.awt.Component.gotFocus(Event, Object)
          As of JDK version 1.1, replaced by processFocusEvent(FocusEvent). 
java.awt.Component.handleEvent(Event)
          As of JDK version 1.1 replaced by processEvent(AWTEvent). 
java.awt.Dialog.hide()
          As of JDK version 1.5, replaced by Component.setVisible(boolean). 
java.awt.Component.hide()
          As of JDK version 1.1, replaced by setVisible(boolean). 
java.awt.Window.hide()
          As of JDK 5, replaced by Component.setVisible(boolean). 
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. 
org.omg.CORBA.Any.insert_Principal(Principal)
          Deprecated by CORBA 2.2.