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

Wrong variable used in constructor for java.awt.image.SampleModel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.2
    • client-libs
    • 2d
    • beta
    • generic
    • generic



      Name: skT88420 Date: 07/20/99


       The constructor for java.awt.image.SampleModel(int dataType,
       int w, int h, int numBands) uses height were it should use h
       in the error message that is thrown when h <= 0 or w <= 0. As
       a result, an incorrect error message is generated.
       TEST CASE:
       Obvious from code reading
      (Review ID: 88144)
      ======================================================================

            tdv Dmitri Trembovetski (Inactive)
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: