[10] RFR: 8186441: Change of behavior in the getMessage () method of the SOAPMessageContextImpl class

Aleks Efimov aleksej.efimov at oracle.com
Wed Nov 29 19:48:49 UTC 2017


Can I, please, ask for assistance with reviewing the JDK-8186441 fix [1]?

Problem description:
In JDK9 we've fixed SAAJ bug in JDK:
And this fix caused JDK-8186441 regression that resulted in breaking the 
namespace definitions in SOAP elements, i.e. the namespace definitions 
were added to SOAP body or to the parent elements.

I'm aware that we're going to remove JAXWS and other EE modules in 
JDK10, but I still would like to fix this bug since it is a regression 
in existing code and JDK8 backport is also required for this issue.

Will submit the same source fix to saaj-ri project [2] too.

Fix the implementation of SaajStaxWriter::DeferredElement to add 
namespaces declaration to current element instead of parent.


Modified regression test and  XML/JAXWS  JCK tests show no failures with 
the fix

With Best Regards,

[1] https://bugs.openjdk.java.net/browse/JDK-8186441
[2] https://github.com/javaee/metro-saaj

More information about the core-libs-dev mailing list