eclipse-ee4j / jaxb-fi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Argument switcharoo in SAXDocumentSerializer

Tomas-Kraus opened this issue · comments

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: javaee/metro-jax-ws#1217
Author: LanceAndersen