[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Small ZipEntry fixlet from libgcj
From: |
Mark Wielaard |
Subject: |
FYI: Small ZipEntry fixlet from libgcj |
Date: |
Sun, 27 Jun 2004 15:02:20 +0200 |
Hi,
Just committed the following small ZipEntry fixlet from libgcj.
2004-06-27 Jerry Quinn <address@hidden>
* java/util/zip/ZipEntry.java (setTime): Remove scaling.
This brings new mauve PASSes!
Cheers,
Mark
Index: java/util/zip/ZipEntry.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/zip/ZipEntry.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- java/util/zip/ZipEntry.java 3 May 2004 20:23:27 -0000 1.19
+++ java/util/zip/ZipEntry.java 6 Jun 2004 20:52:10 -0000 1.20
@@ -1,5 +1,5 @@
/* java.util.zip.ZipEntry
- Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -168,7 +168,7 @@
Calendar cal = getCalendar();
synchronized (cal)
{
- cal.setTime(new Date(time*1000L));
+ cal.setTime(new Date(time));
dostime = (cal.get(Calendar.YEAR) - 1980 & 0x7f) << 25
| (cal.get(Calendar.MONTH) + 1) << 21
| (cal.get(Calendar.DAY_OF_MONTH)) << 16
@@ -176,7 +176,6 @@
| (cal.get(Calendar.MINUTE)) << 5
| (cal.get(Calendar.SECOND)) >> 1;
}
- dostime = (int) (dostime / 1000L);
this.known |= KNOWN_TIME;
}
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Small ZipEntry fixlet from libgcj,
Mark Wielaard <=