2004-08-26 Mark Wielaard <mark@klomp.org>
commit8cc989f0444722242e1a730f9645149e1b0301fe
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Aug 2004 16:10:54 +0000 (26 16:10 +0000)
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Aug 2004 16:10:54 +0000 (26 16:10 +0000)
tree6df4fd9c7b305a1f8cf73d45d5127b66f4df689c
parent6e6d22aa8d7bc93450058148fcffe493cd92e46c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86623 138bc75d-0d04-0410-961f-82ee72b054a4
libjava/ChangeLog
libjava/java/util/TimeZone.java
libjava/java/util/natTimeZone.cc