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

ColorModel.getComponentSize()-wrong conditions for ArrayIndexOutOfBoundsExceptio

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 1.4.1
    • client-libs
    • 2d
    • b27
    • sparc
    • solaris_7

      The spec for ColorModel.getComponentSize(int componentIdx) states that an ArrayIndexOutOfBoundsException is thrown if componentIdx is greater than the number of components or less than zero. The condition should actually be "if componentIdx is greater than OR EQUAL TO the number of components or less than zero."

            serb Sergey Bylokhov
            pjr Paul Rank (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: