changeset 1545:46562ec770e7 jdk8u152-b34

8186441: Change of behavior in the getMessage () method of the SOAPMessageContextImpl class Reviewed-by: lancea
author aefimov
date Sat, 02 Dec 2017 14:27:37 +0000
parents 89658eba580a
children 47bd39412b2f
files src/share/jaxws_classes/com/sun/xml/internal/ws/api/message/saaj/SaajStaxWriter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/jaxws_classes/com/sun/xml/internal/ws/api/message/saaj/SaajStaxWriter.java	Tue Nov 14 13:11:55 2017 -0800
+++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/api/message/saaj/SaajStaxWriter.java	Sat Dec 02 14:27:37 2017 +0000
@@ -492,7 +492,7 @@
                     }
                     // add namespace declarations
                     for (NamespaceDeclaration namespace : this.namespaceDeclarations) {
-                        target.addNamespaceDeclaration(namespace.prefix, namespace.namespaceUri);
+                        newElement.addNamespaceDeclaration(namespace.prefix, namespace.namespaceUri);
                     }
                     // add attribute declarations
                     for (AttributeDeclaration attribute : this.attributeDeclarations) {