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

test/javax/imageio/plugins/png/PngCreationTimeTest.java failes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      10
    • Resolved In Build:
      b23

      Description


      The exception is :
      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 problem is that duke.png (in the code review) was not checked in so
      createImageInputStream returns null.

      The file needs to be checked in ASAP
      In addition the test probably should test for null to give a better error message.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: