JPEGHuffmanTable uses the term 'symbols' in a misleading way

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: client-libs
    • None
    • beta
    • generic
    • solaris_7

        The specification of the javax.imageio.plugins.jpeg.JPEGHuffmanTable
      class, which was copied from the existing unsupported
      com.sun.image.codec.jpeg.JPEGHuffmanTable class, uses the term
      "symbols" throughout when referring to the array of encoded values
      that it maintains. This nomenclature is misleading and even wrong, as
      the array contains the values that are to be Huffman encoded, not the
      Huffman symbols themselves. This misleading nomenclature extends to
      the name of a method: "getSymbols".

        The following actions should be taken:

        Change 'symbols' instance variable to 'values'.
        Change 'getSymbols' method to 'getValues'.
        Change 'HUFF_MAX_SYM' constant to 'HUFF_MAX_VALS'.
        Change 'symbols' argument of constructor to 'values'
        Modify documentation accordingly.

            Assignee:
            Daniel Rice (Inactive)
            Reporter:
            Daniel Rice (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: