hughesjr / rpms / tzdata

Forked from rpms/tzdata 2 years ago
Clone
e7ac91
diff --git a/7133138.patch b/7133138.patch
e7ac91
new file mode 100644
e7ac91
index 0000000..882f15f
e7ac91
--- /dev/null
e7ac91
+++ b/7133138.patch
e7ac91
@@ -0,0 +1,38 @@
e7ac91
+--- sun/tools/javazic/Mappings.java.orig       2015-04-13 12:44:10.000000000 -0400
e7ac91
++++ sun/tools/javazic/Mappings.java    2015-04-13 12:45:28.000000000 -0400
e7ac91
+@@ -1,5 +1,5 @@
e7ac91
+ /*
e7ac91
+- * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
e7ac91
++ * Copyright (c) 2000, 2012, 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,6 +26,7 @@
e7ac91
+ package sun.tools.javazic;
e7ac91
+ 
e7ac91
+ import        java.util.ArrayList;
e7ac91
++import java.util.HashMap;
e7ac91
+ import        java.util.LinkedList;
e7ac91
+ import        java.util.List;
e7ac91
+ import        java.util.Map;
e7ac91
+@@ -162,6 +163,20 @@
e7ac91
+       for (String key : toBeRemoved) {
e7ac91
+           aliases.remove(key);
e7ac91
+       }
e7ac91
++        // Eliminate any alias-to-alias mappings. For example, if
e7ac91
++        // there are A->B and B->C, A->B is changed to A->C.
e7ac91
++        Map<String, String> newMap = new HashMap<String, String>();
e7ac91
++        for (String key : aliases.keySet()) {
e7ac91
++            String realid = aliases.get(key);
e7ac91
++            String leaf = realid;
e7ac91
++            while (aliases.get(leaf) != null) {
e7ac91
++                leaf = aliases.get(leaf);
e7ac91
++            }
e7ac91
++            if (!realid.equals(leaf)) {
e7ac91
++                newMap.put(key, leaf);
e7ac91
++            }
e7ac91
++        }
e7ac91
++        aliases.putAll(newMap);
e7ac91
+     }
e7ac91
+ 
e7ac91
+     Map<String,String> getAliases() {