hughesjr / rpms / tzdata

Forked from rpms/tzdata 2 years ago
Clone
b66a74
diff --git a/7090844.patch b/7090844.patch
b66a74
new file mode 100644
b66a74
index 0000000..fd5b531
b66a74
--- /dev/null
b66a74
+++ b/7090844.patch
b66a74
@@ -0,0 +1,38 @@
b66a74
+--- sun/tools/javazic/Mappings.java.orig       2015-04-13 12:42:30.000000000 -0400
b66a74
++++ sun/tools/javazic/Mappings.java    2015-04-13 12:43:32.000000000 -0400
b66a74
+@@ -1,5 +1,5 @@
b66a74
+ /*
b66a74
+- * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
b66a74
++ * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
b66a74
+  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b66a74
+  *
b66a74
+  * This code is free software; you can redistribute it and/or modify it
b66a74
+@@ -26,9 +26,6 @@
b66a74
+ package sun.tools.javazic;
b66a74
+ 
b66a74
+ import        java.util.ArrayList;
b66a74
+-import        java.util.HashMap;
b66a74
+-import        java.util.HashSet;
b66a74
+-import        java.util.Iterator;
b66a74
+ import        java.util.LinkedList;
b66a74
+ import        java.util.List;
b66a74
+ import        java.util.Map;
b66a74
+@@ -79,8 +76,8 @@
b66a74
+           // If the GMT offset of this Zone will change in some
b66a74
+           // future time, this Zone is added to the exclude list.
b66a74
+             boolean isExcluded = false;
b66a74
+-          if (zone.size() > 1) {
b66a74
+-              ZoneRec zrec = zone.get(zone.size()-2);
b66a74
++            for (int i = 0; i < zone.size(); i++) {
b66a74
++                ZoneRec zrec = zone.get(i);
b66a74
+               if ((zrec.getGmtOffset() != rawOffset)
b66a74
+                   && (zrec.getUntilTime(0) > Time.getCurrentTime())) {
b66a74
+                   if (excludeList == null) {
b66a74
+@@ -88,6 +85,7 @@
b66a74
+                   }
b66a74
+                   excludeList.add(zone.getName());
b66a74
+                     isExcluded = true;
b66a74
++                    break;
b66a74
+               }
b66a74
+           }
b66a74
+