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

[PIT] javax/imageio/plugins/shared/WriteAfterAbort.java

    XMLWordPrintable

    Details

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

      Description

      The test javax/imageio/plugins/shared/WriteAfterAbort.java created together with a fix to JDK-4952954 and fixed in b52 fails in this PIT with IIOException:

      javax.imageio.IIOException: I/O error reading image metadata!
      at com.sun.imageio.plugins.tiff.TIFFImageReader.readMetadata(TIFFImageReader.java:310)
      at com.sun.imageio.plugins.tiff.TIFFImageReader.seekToImage(TIFFImageReader.java:280)
      at com.sun.imageio.plugins.tiff.TIFFImageReader.prepareRead(TIFFImageReader.java:921)
      at com.sun.imageio.plugins.tiff.TIFFImageReader.read(TIFFImageReader.java:1096)
      at javax.imageio.ImageIO.read(ImageIO.java:1448)
      at javax.imageio.ImageIO.read(ImageIO.java:1308)
      at WriteAfterAbort.test(WriteAfterAbort.java:117)
      at WriteAfterAbort.main(WriteAfterAbort.java:137)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(Thread.java:747)
      Caused by: java.io.EOFException
      at javax.imageio.stream.ImageInputStreamImpl.readShort(ImageInputStreamImpl.java:229)
      at javax.imageio.stream.ImageInputStreamImpl.readUnsignedShort(ImageInputStreamImpl.java:242)
      at com.sun.imageio.plugins.tiff.TIFFIFD.initialize(TIFFIFD.java:470)
      at com.sun.imageio.plugins.tiff.TIFFImageMetadata.initializeFromStream(TIFFImageMetadata.java:87)
      at com.sun.imageio.plugins.tiff.TIFFImageReader.readMetadata(TIFFImageReader.java:306)
      ... 13 more

      The failure is platform-independent and seems new for this PIT.

      RULE "javax/imageio/plugins/shared/WriteAfterAbort.java" Exception javax.imageio.IIOException: I/O error reading image metadata!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: