Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8178400

Argument switcharoo in SAXDocumentSerializer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • None
    • xml
    • None

      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 {

            aefimov Aleksej Efimov
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: