hughesjr / rpms / tzdata

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