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

IIOImage constructor throws an incorrect IllegalArgumentException

XMLWordPrintable

    • beta
    • generic, x86, sparc
    • solaris_2.5, solaris_7, solaris_8
    • Verified

        The IIOImage constructor:

          public IIOImage(RenderedImage image,
                          List thumbnails,
                          IIOMetadata metadata)

      checks the value of 'raster' instead of 'image' and throws an IllegalArgumentException if it is null, which it will always be during construction. Therefore this constructor will always fail.

        A regression test will be placed in test/javax/imageio/IIOImageConstructor.java.

            dricesunw Daniel Rice (Inactive)
            dricesunw Daniel Rice (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: