public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at developer dot classpath dot org" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug libgcj/17002] java.util.TimeZone.getDefault() is broken Date: Fri, 23 Feb 2007 15:50:00 -0000 [thread overview] Message-ID: <20070223155048.12959.qmail@sourceware.org> (raw) In-Reply-To: <bug-17002-3639@http.gcc.gnu.org/bugzilla/> ------- Comment #8 from cvs-commit at developer dot classpath dot org 2007-02-23 15:50 ------- Subject: Bug 17002 CVSROOT: /cvsroot/classpath Module name: classpath Changes by: Gary Benson <gbenson> 07/02/23 15:50:04 Modified files: . : ChangeLog NEWS java/lang : System.java java/util : Date.java SimpleTimeZone.java TimeZone.java vm/reference/java/util: VMTimeZone.java Added files: gnu/java/util : ZoneInfo.java Log message: 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. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9128&r2=1.9129 http://cvs.savannah.gnu.org/viewcvs/classpath/NEWS?cvsroot=classpath&r1=1.177&r2=1.178 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/util/ZoneInfo.java?cvsroot=classpath&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/classpath/java/lang/System.java?cvsroot=classpath&r1=1.59&r2=1.60 http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/Date.java?cvsroot=classpath&r1=1.25&r2=1.26 http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/SimpleTimeZone.java?cvsroot=classpath&r1=1.31&r2=1.32 http://cvs.savannah.gnu.org/viewcvs/classpath/java/util/TimeZone.java?cvsroot=classpath&r1=1.36&r2=1.37 http://cvs.savannah.gnu.org/viewcvs/classpath/vm/reference/java/util/VMTimeZone.java?cvsroot=classpath&r1=1.4&r2=1.5 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17002
next prev parent reply other threads:[~2007-02-23 15:50 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-17002-3639@http.gcc.gnu.org/bugzilla/> 2007-02-22 16:05 ` jakub at gcc dot gnu dot org 2007-02-23 15:13 ` gary at gcc dot gnu dot org 2007-02-23 15:50 ` cvs-commit at developer dot classpath dot org [this message] 2007-06-22 12:17 ` jakub at gcc dot gnu dot org 2004-08-12 13:39 [Bug libgcj/17002] New: " mark at gcc dot gnu dot org 2004-08-12 13:39 ` [Bug libgcj/17002] " mark at gcc dot gnu dot org 2004-08-26 16:11 ` cvs-commit at gcc dot gnu dot org 2004-08-26 18:22 ` pinskia at gcc dot gnu dot org 2004-08-26 19:43 ` mckinlay at redhat dot com 2004-08-26 20:34 ` mark at klomp dot org 2004-08-26 21:08 ` mckinlay at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070223155048.12959.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).