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

getPixel mtds in all implementing classes of SampleModel accepts -ve x

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs
    • 2d
    • generic
    • generic



      Name: pkC79091 Date: 01/12/99

      All the getPixel and getPixels methods in all implementing classes
      of SampleModel accepts negative value for x but throws
      ArrayIndexOutOfBoundsException for negative y value.See attached
      testCases.test1.java fails with correct x value and incorrect y value.test2.java
      passes with incorrect x value and correct y value.

      The specs state that an "ArrayIndexOutOfBoundsException may be thrown if the coordinates are not in bounds" . However it is seen that the exception is thrown only when the y coordinate is out of bounds.

      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: