ColorModel.getComponentSize()-wrong conditions for ArrayIndexOutOfBoundsExceptio

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 1.4.1
    • Component/s: 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."

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: