-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b21
-
generic
-
generic
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
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
- relates to
-
JDK-4454622 (cs) Most character conversion clients do not use NIO API
-
- Resolved
-