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

SampleModel constructor does not check for valid datatypes.

XMLWordPrintable

    • 2d
    • 1.2.2
    • generic
    • generic



      Name: rrC76497 Date: 10/12/98


      The SampleModel constructor does not check for the valid datatypes. If
      datatype <0 or datatype>5 then an IllegalArgumentException must be
      thrown and that should be mentioned in the javadoc comments. For image
      data supported by the Java 2D API as of jdk 1.2fcs, this will be one of
      DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, or
      DataBuffer.TYPE_INT.Instead all that the constructor does is:-
      "this.dataType = dataType;"
      ======================================================================

            jehung Jeannette Hung (Inactive)
            rramsunw Ranganathan Ram (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: