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

java.awt.image.Raster methods should throw a NullPointerException

XMLWordPrintable

    • 2d
    • beta
    • generic
    • generic



      Name: pkC79091 Date: 11/26/98

      The following methods of java.awt.image.Raster class do
      accept a null instead of the DataBuffer parameter , but this is not
      mentioned in the javadoc comments.
      protected Raster(SampleModel sampleModel,
                       DataBuffer dataBuffer,
                       Point origin)
      protected Raster(SampleModel sampleModel,
                       DataBuffer dataBuffer,
                       Rectangle aRegion,
                       Point sampleModelTranslate,
                       Raster parent)
      public static Raster createRaster(SampleModel sm,
                                        DataBuffer db,
                                        Point location)
      public static WritableRaster createWritableRaster(SampleModel sm,
                                                        DataBuffer db,
                                                        Point location)
      ======================================================================

            tdv Dmitri Trembovetski (Inactive)
            pkarthiksunw Pattabhiraman Karthik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: