[PIT] Failure of ReplaceMetadataTest on TIFF with IllegalStateException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: client-libs
    • Environment:

      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

            Assignee:
            Brian Burkhalter
            Reporter:
            Yuri Nesterenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: