BandedSampleModel.createCompatibleSampleModel() API docs are wrong

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 6, 21, 25, 26
    • Component/s: client-libs
    • 2d
    • b22
    • 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.

            Assignee:
            Philip Race
            Reporter:
            Igor Nekrestyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: