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

JPEGHuffmanTable uses the term 'symbols' in a misleading way

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: