summaryrefslogtreecommitdiffstats
path: root/libjava/java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-31 05:27:15 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-31 05:27:15 +0000
commit29f99b89e726c19c8ff4ed696532de3cdd387cab (patch)
tree529079b8bffaec3a8174389809627df6fe07ba5a /libjava/java
parent4f56733a3c16f81a07ec0b30751d17044d0ee1b0 (diff)
downloadppe42-gcc-29f99b89e726c19c8ff4ed696532de3cdd387cab.tar.gz
ppe42-gcc-29f99b89e726c19c8ff4ed696532de3cdd387cab.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56696 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/util/Calendar.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/libjava/java/util/Calendar.java b/libjava/java/util/Calendar.java
index 999f10511ba..09e9f2673a5 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;
OpenPOWER on IntegriCloud