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

ByteLookupTable constructors does not check for negative offset values

XMLWordPrintable

    • 2d
    • 1.2beta3
    • generic
    • solaris_2.5
    • Not verified

      Are negative offset values legal for ByteLookupTable(int, byte[])
      or ByteLookupTable(int, byte[][])?

      The code in

      /usr/green/SCCS_DIRECTORIES/JDK1.2/src/share/classes/java/awt/image/ShortLookupTable.java

      does not check the offset and throw exceptions. Also the spec does
      not document exceptions thrown for invalid offsets in the constructor.

      This bug also applies to ShortLookupTable and LookupTable

      Since this seems to be more implementation than javadoc I am submitted
      this under subcategory classes_2D

            jehung Jeannette Hung (Inactive)
            sflemingsunw Steve Fleming (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: