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

ImageWriter.replacePixels() specification is incorrect regarding null ImageWriteParam

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • client-libs

      The specifications of methods [1] and [2] are self-contradictory in stating both that "If param is null, a default write param will be used." and "IllegalArgumentException - if any of the following are true: [...] param is null."

      [1] http://download.java.net/jdk9/docs/api/javax/imageio/ImageWriter.html#replacePixels-java.awt.image.Raster-javax.imageio.ImageWriteParam-
      [2] http://download.java.net/jdk9/docs/api/javax/imageio/ImageWriter.html#replacePixels-java.awt.image.RenderedImage-javax.imageio.ImageWriteParam-

            jdv Jayathirth D V
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: