Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4948136

Scanner.create should call Charset.default() instead of sun.io api

XMLWordPrintable

    • b30
    • generic
    • generic

      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

            mmcclosksunw Michael Mccloskey (Inactive)
            iris Iris Clark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: