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

[PIT] Failure of ReplaceMetadataTest on TIFF with IllegalStateException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • client-libs
    • Windows x64 or OS X x64 (and Linux)

      I have a test with the following code:
      ImageOutputStream ios =
         ImageIO.createImageOutputStream(new File(path + "temp." + format));
      ...
      writer.setOutput(ios);
      ...
      if (writer.canReplaceImageMetadata(0)) {
      ...

      Here format is tif, and with this PIT for (supposedly) jdk9 b105 the test fails with java.lang.IllegalStateException: getOutput() == null!
      thrown from javax.imageio.ImageWriter.canReplaceImageMetadata(0).
      However setOutput with non-null argument was called. Between these two calls there was only a couple of getters invoked.

      Looks like a bug introduced with a fix either to JDK-8145113 or JDK-8144991

            bpb Brian Burkhalter
            yan Yuri Nesterenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: