hughesjr / rpms / tzdata

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