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