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

(cs) Unclear definition of averageBytesPerChar methods

XMLWordPrintable

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

      The averageBytesPerChar parameter of the CharsetEncoder constructors is not clearly defined. In the UTF-8 encoder implementation, 1.1 is used, for example. But I have no idea how 1.1 was chosen for UTF-8.

      I'd suggest that the averageBytesPerChar parameter (and the related methods) be removed or be clearly defined in the javadoc.

      ========================================================================
      Tagging as cs bug, spec issue - reassigning to Mark.
      ###@###.### 2001-09-06

            martin Martin Buchholz
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: