This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/17002] java.util.TimeZone.getDefault() is broken


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]