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

ColorModel.getComponentSize()-wrong conditions for ArrayIndexOutOfBoundsExceptio

    XMLWordPrintable

Details

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

    Description

      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."

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: