libgcj/7785: Calendar.getTimeInMillis/setTimeInMillis should be public
jmr@ugcs.caltech.edu
jmr@ugcs.caltech.edu
Fri Aug 30 19:46:00 GMT 2002
>Number: 7785
>Category: libgcj
>Synopsis: Calendar.getTimeInMillis/setTimeInMillis should be public
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 30 19:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Jesse Rosenstock
>Release: 3.3 20020828 (experimental)
>Organization:
>Environment:
System: Linux churchill 2.4.3-12 #1 Fri Jun 8 15:05:56 EDT 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/home/user/jmr/app/gcc --enable-langs=c++,java --enable-shared --enable-threads=posix --with-as=/home/user/jmr/app/binutils/bin/as --with-ld=/home/user/jmr/app/binutils/bin/ld : (reconfigured)
>Description:
Both Calendar.getTimeInMillis and Calendar.setTimeInMillis are
specified as public in Sun's javadoc, but libjava declares them
as protected.
>How-To-Repeat:
>Fix:
--- Calendar.java 18 Jun 2002 15:39:48 -0000 1.13
+++ Calendar.java 31 Aug 2002 02:41:16 -0000
@@ -505,7 +505,7 @@
* Returns the time represented by this Calendar.
* @return the time in milliseconds since the epoch.
*/
- protected long getTimeInMillis()
+ public long getTimeInMillis()
{
if (!isTimeSet)
computeTime();
@@ -517,7 +517,7 @@
* are invalidated by this method.
* @param time the time in milliseconds since the epoch
*/
- protected void setTimeInMillis(long time)
+ public void setTimeInMillis(long time)
{
this.time = time;
isTimeSet = true;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list