In Mustang, we plan to remove sun.io. The logger should not use this old
API in anticipation of this change.
I believe that this approximates the changes that need to be made:
java.util.logging.Handler:
old:
if (encoding != null) {
// Check the encoding exists.
sun.io.CharToByteConverter.getConverter(encoding);
}
this.encoding = encoding;
new:
if (encoding != null
&& !java.nio.charset.Charset.isSupported(encoding))
throw new UnsupportedEncodingException(encoding);
}
java.util.logging.XMLFormatter.getHead:
old:
encoding = sun.io.Converters.getDefaultEncodingName();
new:
encoding = java.nio.charset.Charset.defaultCharset().name();
-- iag@sfbay 2003-11-03