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

CharToByte converter getMaxBytesPerChar() returns wrong value.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs
    • None

      CharToByte convert getMaxBytesPerChar() returns bytes necessary to hold native bytes for one java unicode character. Some converter, like, ISO2022JP will comsumes up to 5 bytes (including escape sequence). But getMaxBytesPerChar() returns '2'. Unless it is private API, sun.io, we can control how caller allocate output bytes buffer. However, this will be a problem when we make API to public in future.

      This bug is derived from 4252798 that deals with two problem. So, I split it.
      koushi.takahashi@japan 1999-07-14

            sherman Xueming Shen
            ktakahassunw Koushi Takahashi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: