From Masayoshi.Okutsu at Sun.COM Fri Feb 1 05:11:30 2008 From: Masayoshi.Okutsu at Sun.COM (Masayoshi Okutsu) Date: Fri, 01 Feb 2008 22:11:30 +0900 Subject: Using system tzdata In-Reply-To: <479FEC31.5030404@sun.com> References: <200708090008.l7908GHP025455@ribbit.SFBay.Sun.COM> <46C32F4E.1050006@redhat.com> <46C3AE39.3010200@sun.com> <46E5A4C5.9080904@redhat.com> <46F16A51.80705@redhat.com> <476B2C0B.2060507@sun.com> <478E2034.4010502@sun.com> <479DDCF1.6080609@sun.com> <479F8DE0.70907@kaffe.org> <479FBC03.5090603@sun.com> <479FC2B3.2070106@sun.com> <479FEC31.5030404@sun.com> Message-ID: <47A31A82.8080303@sun.com> A problem is that the OS tzdata doesn't contain enough information for supporting the java.util.Calendar API. Otherwise, it would be unnecessary to provide JDK's own tzdata files. Masayoshi Martin Buchholz wrote: > I don't know anything about how the Olson database is implemented > or accessed on any particular OS..... I'm just brainstorming here. > > Say someone creates their own timezone definition MYTZ and adds it > to the OS database. If Java fails to lookup any such timezone, > it seems reasonable to consult the OS. > Similarly if the OS has a more up-to-date database with a newly > defined timezone. (But that's rare) > > If the JDK and the OS agree on the current timezone definition, > all is wonderful. If they differ, perhaps it is worth figuring > out which is newer, even if that is difficult. Perhaps it's worth > snooping around in /usr/share/lib/zoneinfo. > > Martin > > Masayoshi Okutsu wrote: > >> Tzdata for Java does have the Olson version information (eg, >> tzdata2007k), but I don't think the OS tzdata has it. But I don't know >> what Java should do if it was possible to check OS tzdata version. Can >> you elaborate your suggestion a bit more? >> >> Thanks, >> Masayoshi >> >> On 1/30/2008 8:51 AM, Martin Buchholz wrote: >> >>> Dalibor Topic wrote: >>> >>> >>>> Masayoshi Okutsu wrote: >>>> From the POV of operating system distributors that already need to >>>> support tzdata for other applications, and therefore need to keep it >>>> current anyway for their customers, I think it's preferable to rely on >>>> system facilities where such facilities exist, than to have to push a >>>> separate patch for the Java runtime. >>>> >>>> >>> Perhaps the best behavior is to check whether the system database is >>> at least as up to date as the Java database. Could Java know >>> about the "last" change to its own database, query the OS as to whether >>> it "knows about" this specific change, and if so, defer to it? >>> >>> Martin >>> >>> >>> >>>> cheers, >>>> dalibor topic >>>> >>>> From mr at sun.com Fri Feb 29 22:13:21 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 06:13:21 +0000 Subject: hg: jdk7/i18n: 2 new changesets Message-ID: <20080301061321.9D28726F37@hg.openjdk.java.net> Changeset: 0a5c5386a678 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/rev/0a5c5386a678 Added tag jdk7-b24 for changeset cfeea66a3fa8 + .hgtags Changeset: c57bef8dda9c Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/rev/c57bef8dda9c 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 22:13:30 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 06:13:30 +0000 Subject: hg: jdk7/i18n/corba: 2 new changesets Message-ID: <20080301061332.D712826F3E@hg.openjdk.java.net> Changeset: 474c23b174e9 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/corba/rev/474c23b174e9 Added tag jdk7-b24 for changeset 55540e827aef + .hgtags Changeset: fec639c69db2 Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/corba/rev/fec639c69db2 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 22:13:54 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 06:13:54 +0000 Subject: hg: jdk7/i18n/hotspot: 2 new changesets Message-ID: <20080301061401.2F47626F45@hg.openjdk.java.net> Changeset: 92489cdc94d1 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/hotspot/rev/92489cdc94d1 Added tag jdk7-b24 for changeset a61af66fc99e + .hgtags Changeset: 7836be3e92d0 Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/hotspot/rev/7836be3e92d0 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 22:14:45 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 06:14:45 +0000 Subject: hg: jdk7/i18n/jaxp: 2 new changesets Message-ID: <20080301061449.7E06D26F4C@hg.openjdk.java.net> Changeset: 9e3c1ad7cdb9 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/jaxp/rev/9e3c1ad7cdb9 Added tag jdk7-b24 for changeset 6ce5f4757bde + .hgtags Changeset: 49a4bc7b0aa0 Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/jaxp/rev/49a4bc7b0aa0 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 22:15:00 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 06:15:00 +0000 Subject: hg: jdk7/i18n/jaxws: 2 new changesets Message-ID: <20080301061504.50F9026F53@hg.openjdk.java.net> Changeset: 7d53d3bd7879 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/jaxws/rev/7d53d3bd7879 Added tag jdk7-b24 for changeset 0961a4a21176 + .hgtags Changeset: 018781e80410 Author: mr Date: 2008-02-29 20:03 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/jaxws/rev/018781e80410 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 22:15:16 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 06:15:16 +0000 Subject: hg: jdk7/i18n/jdk: 2 new changesets Message-ID: <20080301061551.D6AB326F5A@hg.openjdk.java.net> Changeset: 99a06bc7fdb5 Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/jdk/rev/99a06bc7fdb5 Added tag jdk7-b24 for changeset 37a05a11f281 + .hgtags Changeset: 8266cb7549d3 Author: mr Date: 2008-02-29 20:04 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/jdk/rev/8266cb7549d3 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf From mr at sun.com Fri Feb 29 22:17:39 2008 From: mr at sun.com (mr at sun.com) Date: Sat, 01 Mar 2008 06:17:39 +0000 Subject: hg: jdk7/i18n/langtools: 2 new changesets Message-ID: <20080301061743.60FCC26F61@hg.openjdk.java.net> Changeset: e4dae1993f8b Author: xdono Date: 2007-12-04 16:28 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/langtools/rev/e4dae1993f8b Added tag jdk7-b24 for changeset 9a66ca7c79fa + .hgtags Changeset: e5e9fa6fa29c Author: mr Date: 2008-02-29 20:04 -0800 URL: http://hg.openjdk.java.net/jdk7/i18n/langtools/rev/e5e9fa6fa29c 6669216: Add jcheck configuration directories Reviewed-by: ohair, xdono + .jcheck/conf