Skip to content

Commit 633ddc1

Browse files
author
aefimov
committed
8186441: Change of behavior in the getMessage () method of the SOAPMessageContextImpl class
Reviewed-by: lancea
1 parent 5b56a20 commit 633ddc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/api/message/saaj/SaajStaxWriter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ public SOAPElement flushTo(final SOAPElement target) throws XMLStreamException {
492492
}
493493
// add namespace declarations
494494
for (NamespaceDeclaration namespace : this.namespaceDeclarations) {
495-
target.addNamespaceDeclaration(namespace.prefix, namespace.namespaceUri);
495+
newElement.addNamespaceDeclaration(namespace.prefix, namespace.namespaceUri);
496496
}
497497
// add attribute declarations
498498
for (AttributeDeclaration attribute : this.attributeDeclarations) {

0 commit comments

Comments
 (0)