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

reader.abort() method does not work when called inside imageStarted for PNG

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b137
    • CPU:
      generic
    • OS:
      generic

      Description

      I am reading a PNG image from a file using PNG image reader. I have added an IIOReadProgressListener to the PNGReader. Inside the imageStarted() method of the listener, i am trying to abort the read process by calling reader.abort(). This does not have any effect on the read process and PNG Reader continues to read the image till completion.
      This is reproducible on Solaris as well as Win32, since JDk1.4. This functionality works fine for all other readers.

      I have attached a sample testcase. Execute the testcase as follows:
      java ReadAbortTest <img file>
      When you pass a PNG image, the image will be read fully and will be displayed to the user. For all other image types, the read process will be aborted immediately.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jdv Jayathirth D V
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: