FYI: TimeZone/VMTimeZone split integrated from GNU Classpath
Mark Wielaard
mark@klomp.org
Mon Sep 27 09:29:00 GMT 2004
Hi,
This patch implements the TimeZone/VMTimeZone split we talked about a
while ago. It was already in GNU Classpath for a while (and was in the
0.11 developer snapshot release). It also adds two small (but important)
bugfixes.
2004-09-25 Mark Wielaard <mark@klomp.org>
* Makefile.am (core_java_source_files): Add VMTimeZone.java.
(nat_source_files): Rename natTimeZone.cc to natVMTimeZone.cc.
* Makefile.in: Regenerated.
* gcj/javaprims.h: Regenerated.
* java/util/TimeZone.java (defaultZone): Use VMTimeZone.
(getDefaultTimeZone): Make package private. Check that GMToffset
contains at least one digit.
(getDefaultTimeZoneId, readTimeZoneFile, readtzFile): (Re)Moved to
VMTimeZone.
* util/VMTimeZone.java: New file with above methods.
* java/util/natTimeZone.cc: Removed (renamed).
* java/util/natVMTimeZone.cc: Added (renamed).
2004-09-25 Jeroen Frijters <jeroen@frijters.net>
* java/util/TimeZone.java
(getDefaultTimeZone): Fixed test to distinguish between hours and
minutes in specified timezone.
The native code is now almost identical between GNU Classpath and
libgcj. It might be a good idea to extract most code out
natVMTimeZone.cc (VMTimeZone.c in classpath) and put it in its own file
so it can be easier shared between the projects. But I haven't done this
yet.
Committed to mainline.
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timezone.patch
Type: text/x-patch
Size: 32662 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040927/324ee0ca/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040927/324ee0ca/attachment.sig>
More information about the Java-patches
mailing list