-
Bug
-
Resolution: Fixed
-
P3
-
9
-
Windows x64 or OS X x64 (and Linux)
-
b131
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 toJDK-8145113 or JDK-8144991
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
- relates to
-
JDK-8148891 Multiple failing javax/imageio/plugins after client integration
-
- Resolved
-