hughesjr / rpms / tzdata

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