From 549f32f946f2b669ca756ec981b28067fb1ceb88 Mon Sep 17 00:00:00 2001 From: Aleksei Efimov Date: Tue, 20 Oct 2015 19:28:49 +0300 Subject: [PATCH] 8134650: Xsl transformation gives different results in 8u66 Reviewed-by: lancea, dfuchs, joehw --- .../apache/xalan/internal/xsltc/compiler/LiteralElement.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/LiteralElement.java b/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/LiteralElement.java index 78078e3be07..a9338d6e975 100644 --- a/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/LiteralElement.java +++ b/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/LiteralElement.java @@ -36,6 +36,7 @@ import com.sun.org.apache.xml.internal.serializer.ElemDesc; 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 @@ final class LiteralElement extends Instruction { } } - // 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) {