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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 5.0
    • core-libs
    • generic
    • 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

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

              Dates

                Created:
                Updated:
                Imported:
                Indexed: