8134650: Xsl transformation gives different results in 8u66
Reviewed-by: lancea, dfuchs, joehw
--- a/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/LiteralElement.java Wed Sep 09 01:57:38 2015 +0300
+++ b/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/LiteralElement.java Tue Oct 20 19:28:49 2015 +0300
@@ -36,6 +36,7 @@
import com.sun.org.apache.xml.internal.serializer.ToHTMLStream;
import java.util.ArrayList;
import java.util.HashMap;
+import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -104,9 +105,9 @@
}
}
- // Check if we have any declared namesaces
+ // Check if we have any declared namespaces
if (_accessedPrefixes == null) {
- _accessedPrefixes = new HashMap<>();
+ _accessedPrefixes = new Hashtable<>();
}
else {
if (!declared) {