]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libgcj/7785 (Calendar.getTimeInMillis/setTimeInMillis should be public)
authorJesse Rosenstock <jmr@ugcs.caltech.edu>
Sat, 31 Aug 2002 05:27:15 +0000 (05:27 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sat, 31 Aug 2002 05:27:15 +0000 (05:27 +0000)
2002-08-30  Jesse Rosenstock  <jmr@ugcs.caltech.edu>

* java/util/Calendar.java (getTimeInMillis, getTimeInMillis): Now
public, per 1.4 spec.  Fixes PR libgcj/7785.

From-SVN: r56696

libjava/ChangeLog
libjava/java/util/Calendar.java

index c64f9ea303484b1520d2c5ecd9273e054d61c471..3e31ea2babc99722e31ac720a08de72acebdac8a 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-30  Jesse Rosenstock  <jmr@ugcs.caltech.edu>
+
+       * java/util/Calendar.java (getTimeInMillis, getTimeInMillis): Now
+       public, per 1.4 spec.  Fixes PR libgcj/7785.
+
 2002-08-30  Jeff Sturm  <jsturm@one-point.com>
 
        * Makefile.in: Rebuilt.
index 999f10511bae58a93ff12860a29672829a3b6754..09e9f2673a547c1305f20a23001ae34fe4ed5c1e 100644 (file)
@@ -1,5 +1,5 @@
 /* java.util.Calendar
-   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -504,8 +504,9 @@ public abstract class Calendar implements Serializable, Cloneable
   /**
    * Returns the time represented by this Calendar.
    * @return the time in milliseconds since the epoch.
+   * @specnote This was made public in 1.4.
    */
-  protected long getTimeInMillis()
+  public long getTimeInMillis()
   {
     if (!isTimeSet)
       computeTime();
@@ -516,8 +517,9 @@ public abstract class Calendar implements Serializable, Cloneable
    * Sets this Calendar's time to the given Time.  All time fields
    * are invalidated by this method.
    * @param time the time in milliseconds since the epoch
+   * @specnote This was made public in 1.4.
    */
-  protected void setTimeInMillis(long time)
+  public void setTimeInMillis(long time)
   {
     this.time = time;
     isTimeSet = true;