Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JiBX 1.1.6
-
Fix Version/s: JiBX 1.2.1
-
Component/s: core
-
Labels:None
-
Number of attachments :
Description
Below is the code currently used in StAXWriter. The version and encoding parameters received in writeXMLDecl() are the reverse order for the XMLStreamWriter.writeStartDocument() which causes an XMLStreamException to be thrown.
public void writeXMLDecl(String version, String encoding, String standalone) throws IOException {
try
catch (XMLStreamException e)
{ throw new IOException("Error writing to stream: " + e.getMessage()); }}
Reordered arguments.