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.
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.
- relates to
-
JDK-5085148 (spec){Reader,Writer}.close() documentation is ambiguous
- Resolved