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

(spec) Write.write(int) subclasses unclear regarding supplementary character support

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The API doc of Writer.write(int) is:

          Writes a single character. The character to be written is contained in the 16 low-order bits of the given integer value;
          the 16 high-order bits are ignored.

      However, none of its subclasses clarifies the restriction that the 16 high-order bits are ignored. This is confusing and developers expect that write(int) in the subclasses supports supplementary characters.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              okutsu Masayoshi Okutsu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Imported:
                Indexed: