JDK-4948136 : Scanner.create should call Charset.default() instead of sun.io api
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-11-04
  • Updated: 2003-11-23
  • Resolved: 2003-11-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b30Fixed
Related Reports
Relates :  
Description
In Mustang, we plan to remove sun.io.  The newly introduced Scanner should not
depend on this old api if possible.

I believe that this is the change that needs to be made:

old:

  String defaultCharsetName = Converters.getDefaultEncodingName();

new:

 String defaultCharsetName = java.nio.charset.Charset.defaultCharset().name()

-- iag@sfbay 2003-11-03

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b30 tiger-beta
11-08-2004

EVALUATION A straightforward fix. ###@###.### 2003-11-04
04-11-2003