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

test javax/imageio/plugins/png/PngCreationTime fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • None
    • client-libs
    • None

      test javax/imageio/plugins/png/PngCreationTime was just checked in
      under bug https://bugs.openjdk.java.net/browse/JDK-8164971
      but it is failing to find the required file duke.png, so
                      imageStream = ImageIO.createImageInputStream(file);
      returns null and then we get an exception from the reader.
      Exception in thread "main" java.lang.IllegalStateException: Input source not set!
      at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readHeader(PNGImageReader.java:227)
      at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:678)
      at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1310)
      at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1674)
      at PngCreationTimeTest.initializeTest(PngCreationTimeTest.java:79)
      at PngCreationTimeTest.main(PngCreationTimeTest.java:349)

      the file "duke.png" was in the webrev but apparenyl was not checked
      in along with the fix.
      We need to fix this immediately or problem list it.

            pnarayanan Prahalad Kumar Narayanan (Inactive)
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: