hughesjr / rpms / tzdata

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