javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

Argument switcharoo in SAXDocumentSerializer #1217

Open LanceAndersen opened 6 years ago

LanceAndersen commented 6 years ago

Previously reported at https://bugs.openjdk.java.net/browse/JDK-8178400

As found by errorprone, the args (or the arg variable names) to encodeDocumentTypeDeclaration appear to be switched:

$ pwd; grep -r encodeDocumentTypeDeclaration . .../jdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/fastinfoset ./sax/SAXDocumentSerializer.java: encodeDocumentTypeDeclaration(publicId, systemId); ./Encoder.java: protected final void encodeDocumentTypeDeclaration(String systemId, String publicId) throws IOException {