diff options
author | Jesse Rosenstock <jmr@ugcs.caltech.edu> | 2002-08-31 05:27:15 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-08-31 05:27:15 +0000 |
commit | 42417be496ed1bf8d79e7b9d9f6eaaff0d943ac9 (patch) | |
tree | 529079b8bffaec3a8174389809627df6fe07ba5a /libjava | |
parent | 157c4da237eb6ef0caba9907c1108c073ba6e097 (diff) | |
download | gcc-42417be496ed1bf8d79e7b9d9f6eaaff0d943ac9.zip gcc-42417be496ed1bf8d79e7b9d9f6eaaff0d943ac9.tar.gz gcc-42417be496ed1bf8d79e7b9d9f6eaaff0d943ac9.tar.bz2 |
re PR libgcj/7785 (Calendar.getTimeInMillis/setTimeInMillis should be public)
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
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/util/Calendar.java | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index c64f9ea..3e31ea2 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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. diff --git a/libjava/java/util/Calendar.java b/libjava/java/util/Calendar.java index 999f105..09e9f26 100644 --- a/libjava/java/util/Calendar.java +++ b/libjava/java/util/Calendar.java @@ -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; |