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

BandedSampleModel.createCompatibleSampleModel() API docs are wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 6, 21, 25, 26
    • client-libs
    • 2d
    • x86
    • linux

      A DESCRIPTION OF THE REQUEST :
      I can see a couple of problems here with the documented exceptions:

      (1) If w or h is Integer.MAX_VALUE an IllegalArgumentException IS thrown, but you can get the exception for a lot of other inputs also...I'm wondering if the exception occurs when w * h is greater than Integer.MAX_VALUE (see for example the similar exception in the SampleModel constructor), but I'd have to look at the source code to know (and I won't do that, as I'm a contributor to GNU Classpath);

      (2) An IllegalArgumentException is documented for dataType, but there is no dataType argument.

      JUSTIFICATION :
      The specification should be complete and accurate.

            prr Philip Race
            igor Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: