classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: FYI: fix PR 23531


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: fix PR 23531
Date: 23 Aug 2005 09:41:44 -0600

I'm checking this in.

We had incorrectly marked a few methods as deprecated.
This is PR 23531.

I've noticed recently that our japi results have a lot of incorrect
deprecation remarks -- perhaps the compiler used to generate the japi
file has a bug here?  (Some versions of gcj did.)  It would be nice to
get this fixed.

Tom

Index: ChangeLog
from  Tom Tromey  <address@hidden>
        PR classpath/23531
        * java/sql/Date.java (toString): Not deprecated.
        (valueOf): Likewise.
        * java/sql/Time.java (toString): Not deprecated.
        (valueOf): Likewise.

Index: java/sql/Date.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/sql/Date.java,v
retrieving revision 1.10
diff -u -r1.10 Date.java
--- java/sql/Date.java 2 Jul 2005 20:32:41 -0000 1.10
+++ java/sql/Date.java 23 Aug 2005 15:44:42 -0000
@@ -1,5 +1,5 @@
 /* Date.java -- Wrapper around java.util.Date
-   Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2003, 2005 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -154,8 +154,6 @@
    *
    * @param str The string to parse.
    * @return The resulting <code>java.sql.Date</code> value.
-   *
-   * @deprecated
    */
   public static Date valueOf (String str)
   {
@@ -178,8 +176,6 @@
    * This method returns this date in JDBC format.
    *
    * @return This date as a string.
-   *
-   * @deprecated
    */
   public String toString()
   {
Index: java/sql/Time.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/sql/Time.java,v
retrieving revision 1.10
diff -u -r1.10 Time.java
--- java/sql/Time.java 2 Jul 2005 20:32:41 -0000 1.10
+++ java/sql/Time.java 23 Aug 2005 15:44:42 -0000
@@ -1,5 +1,5 @@
 /* Time.java -- Wrapper around java.util.Date
-   Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2002, 2003, 2005 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -139,8 +139,6 @@
    *
    * @param str The string to parse.
    * @return The resulting <code>java.sql.Time</code> value.
-   *
-   * @deprecated
    */
   public static Time valueOf (String str)
   {
@@ -193,8 +191,6 @@
    * This method returns this date in JDBC format.
    *
    * @return This date as a string.
-   *
-   * @deprecated
    */
   public String toString ()
   {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]