summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2007-02-23 15:50:03 +0000
committerGary Benson <gbenson@redhat.com>2007-02-23 15:50:03 +0000
commit2f8ad2e27e4eb2c556af748828ce474aafbf0473 (patch)
treea5bf20256d0983004c4469eae6ba971fb9880048 /NEWS
parentde6fca4801b251c2ffe063bd710dbd1d3275aed4 (diff)
downloadclasspath-2f8ad2e27e4eb2c556af748828ce474aafbf0473.tar.gz
2007-02-23 Gary Benson <gbenson@redhat.com>
Jakub Jelinek <jakub@redhat.com> PR libgcj/17002 PR classpath/28550 * java/util/Date.java (parse): Properly parse 09:01:02 as hours/minutes/seconds, not as hours/minutes/year. * java/util/SimpleTimeZone.java (SimpleTimeZone): Simplify {start,end}TimeMode constructor by calling shorter constructor, set {start,end}TimeMode fields after it returns. (setStartRule): Don't adjust startTime into WALL_TIME. Set startTimeMode to WALL_TIME. (endStartRule): Similarly. (getOffset): Handle properly millis + dstOffset overflowing into the next day. Adjust startTime resp. endTime based on startTimeMode resp. endTimeMode. * java/util/TimeZone.java (zoneinfo_dir, availableIDs, aliases0): New static fields. (timezones): Remove synchronized keyword. Set zoneinfo_dir. If non-null, set up aliases0 and don't put anything into timezones0. (defaultZone): Call getTimeZone instead of timezones().get. (getDefaultTimeZone): Fix parsing of EST5 or EST5EDT6. Use getTimeZoneInternal instead of timezones().get. (parseTime): Parse correctly hour:minute. (getTimeZoneInternal): New private method. (getTimeZone): Do the custom ID checking first, canonicalize ID for custom IDs as required by documentation. Call getTimeZoneInternal to handle the rest. (getAvailableIDs(int)): Add locking. Handle zoneinfo_dir != null. (getAvailableIDs(File,String,ArrayList)): New private method. (getAvailableIDs()): Add locking. Handle zoneinfo_dir != null. * vm/reference/java/util/VMTimeZone.java (getDefaultTimeZoneId): To read /etc/localtime, use ZoneInfo.readTZFile instead of VMTimeZone.readtzFile. Get better timezone name for /etc/localtime, either if it is a symlink or through /etc/sysconfig/clock. (readSysconfigClockFile): New static method. (readtzFile): Removed. * gnu/java/util/ZoneInfo.java: New file. * java/lang/System.java: Add gnu.java.util.zoneinfo.dir to comments. * NEWS: Documented TimeZone interface changes.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS12
1 files changed, 10 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index d43a0796c..4d184a16b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,12 +1,12 @@
New in release 0.94 (UNRELEASED)
* The ASM library is now included. A separate copy is no longer needed.
-
* The setReadTimeout and getReadTimeout methods have been added to
java.net.URLConnection. They are now fully implemented for http URLs.
-
* The java.lang.management implementation now includes the new features
added in 1.6
+* java.util.TimeZone now reads time zone information from the system
+ zoneinfo files.
Runtime interface changes:
@@ -19,6 +19,14 @@ Runtime interface changes:
to ownable synchronizers (part of the java.util.concurrent suite)
and only required if monitoring of locks relating to these is
supported by the VM.
+* java.util.VMTimeZone and java.util.TimeZone have been refactored
+ to simplify the reference implementation. VMTimeZone.readtzFile()
+ and VMTimeZone.skipFully() have been removed, and a new method
+ VMTimeZone.readSysconfigClockFile() has been introduced.
+* VMs need to set the system property "gnu.java.util.zoneinfo.dir"
+ to point to the directory where zoneinfo files live. In libgcj
+ this is set to the value of the TZDATA environment variable, or
+ "/usr/share/zoneinfo" if this is not set.
New in release 0.93 (Dec 8, 2006)