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