[Bug libgcj/17002] java.util.TimeZone.getDefault() is broken
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Aug 26 16:11:00 GMT 2004
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-26 16:11 -------
Subject: Bug 17002
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mark@gcc.gnu.org 2004-08-26 16:10:54
Modified files:
libjava : ChangeLog
libjava/java/util: TimeZone.java natTimeZone.cc
Log message:
2004-08-26 Mark Wielaard <mark@klomp.org>
Fixes PR libgcj/17002:
* java/util/TimeZone.java (defaultZone): Try a couple of ways to get
a TimeZoneId string and then try to convert that to a TimeZone with
getDefaultSystemTimeZone(String).
(timezones0): Changed type from Hashtable to HashMap.
(timezones): Create HashMap, not Hashtable.
(getDefaultTimeZone): New method, rewritten from CNI version.
(readTimeZoneFile): New method.
(readtzFile): Likewise.
(skipFully): Likewise.
* java/util/natTimeZone.cc (getSystemTimeZone): Renamed to
getDefaultTimeZoneId and rewritten.
(getDefaultTimeZoneId): Rewritten in java.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3020&r2=1.3021
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/util/TimeZone.java.diff?cvsroot=gcc&r1=1.18&r2=1.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/util/natTimeZone.cc.diff?cvsroot=gcc&r1=1.6&r2=1.7
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17002
More information about the Java-prs
mailing list