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

[PIT] Failure of ReplaceMetadataTest on TIFF with IllegalStateException

    XMLWordPrintable

    Details

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

      Windows x64 or OS X x64 (and Linux)

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: