eclipse-ee4j / jaxb-fi

Apache License 2.0
8 stars 10 forks source link

Argument switcharoo in SAXDocumentSerializer #116

Open Tomas-Kraus opened 2 years ago

Tomas-Kraus commented 2 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 {

Source: https://github.com/javaee/metro-jax-ws/issues/1217 Author: LanceAndersen