The most trivial use of the javax.xml.transform API in Mustang causes the
message "Warning: Could not get charToByteConverterClass!" to be written to
System.err. This is extremely annoying. It's also a compatibility issue since
most existing applications probably aren't expecting random libraries to write
unsolicited messages to System.err.
Code to reproduce the problem:
----
import java.io.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;
public class Bug {
public static void main(String[] args) throws Exception {
TransformerFactory tff = TransformerFactory.newInstance();
Transformer tf = tff.newTransformer();
byte[] in = new byte[] { (byte)'<', (byte)'x', (byte)'/', (byte)'>' };
tf.transform(new StreamSource(new ByteArrayInputStream(in)),
new StreamResult(new FileOutputStream("/dev/null")));
}
}
----