aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk16
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2006-11-07 03:51:16 +0800
committerglewis <glewis@FreeBSD.org>2006-11-07 03:51:16 +0800
commit7c31df71ade5b92a08f0e7e56369151d337b25a5 (patch)
tree23f87e5600f03524dfdcc48ce41832b888f15693 /java/jdk16
parent7c3f9900d34d491f760f2ed4ecd539ce7eb21715 (diff)
downloadfreebsd-ports-gnome-7c31df71ade5b92a08f0e7e56369151d337b25a5.tar.gz
freebsd-ports-gnome-7c31df71ade5b92a08f0e7e56369151d337b25a5.tar.zst
freebsd-ports-gnome-7c31df71ade5b92a08f0e7e56369151d337b25a5.zip
. Fix a possible problem building the JDK in the GMT+0 time zone. When
building, the JDK zone info file doesn't exist yet, so attempting to get the zone info for GMT_ID would fail. Submitted by: Kurt Miller <kurt@intricatesoftware.com>
Diffstat (limited to 'java/jdk16')
-rw-r--r--java/jdk16/files/patch-j2se::util::TimeZone.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/java/jdk16/files/patch-j2se::util::TimeZone.java b/java/jdk16/files/patch-j2se::util::TimeZone.java
new file mode 100644
index 000000000000..834897b78058
--- /dev/null
+++ b/java/jdk16/files/patch-j2se::util::TimeZone.java
@@ -0,0 +1,21 @@
+$FreeBSD$
+
+--- ../../j2se/src/share/classes/java/util/TimeZone.java 8 Nov 2004 22:27:20 -0000 1.1.1.1
++++ ../../j2se/src/share/classes/java/util/TimeZone.java 5 Nov 2006 17:43:12 -0000
+@@ -748,15 +748,13 @@
+ }
+ int gmtOffset = (hours * 60 + num) * 60 * 1000;
+
++ zi = ZoneInfoFile.getCustomTimeZone(id, negative ? -gmtOffset : gmtOffset);
+ if (gmtOffset == 0) {
+- zi = ZoneInfoFile.getZoneInfo(GMT_ID);
+ if (negative) {
+ zi.setID("GMT-00:00");
+ } else {
+ zi.setID("GMT+00:00");
+ }
+- } else {
+- zi = ZoneInfoFile.getCustomTimeZone(id, negative ? -gmtOffset : gmtOffset);
+ }
+ return zi;
+ }