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

(docs) java.io.{InputStreamReader,OutputStreamWriter} should specify encodings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.1.4, 1.1.5, 1.2.0
    • core-libs
    • None
    • kestrel
    • generic, x86
    • generic, windows_nt

      The InputStreamReader and OutputStreamWriter constructors accept a string that represents the name of the character set to use, but the literals that are used for these encodings are not documented and may be platform-dependent. This leads to the possibility of non-portable applications that make API calls with an encoding string that is recognized on one platform, but not another.

      This problem could be avoided if the encoding strings are documented as part of the API.

            mr Mark Reinhold
            kdonkersunw Karin Donker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: