JDK-2198469 : DST broken when jre/lib/zi is moved elsewhere and replaced with symlink.
  • Type: Backport
  • Backport of: JDK-6941137
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2010-09-10
  • Updated: 2010-12-03
  • Resolved: 2010-11-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 7
1.4.2_29 b01Fixed 7Fixed
Comments
SUGGESTED FIX diff --git a/src/share/classes/sun/util/calendar/ZoneInfoFile.java b/src/share/classes/sun/util/calendar/ZoneInfoFile.java --- a/src/share/classes/sun/util/calendar/ZoneInfoFile.java +++ b/src/share/classes/sun/util/calendar/ZoneInfoFile.java @@ -426,9 +426,10 @@ public class ZoneInfoFile { ziDir = (String) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { String zi = System.getProperty("java.home") + - File.separator + "lib" + File.separator + "zi"; + File.separator + "lib" + File.separator + "zi" + + File.separator + JAVAZM_FILE_NAME ; try { - zi = new File(zi).getCanonicalPath(); + zi = new File(zi).getCanonicalFile().getParent(); } catch(Exception e) { } return zi;
16-11-2010

EVALUATION see parent cr.
10-09-2010