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

GIF Writer does not call clearAbortRequest() at the begining of each write operation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • client-libs
    • b53
    • generic
    • generic
    • Verified

      I am creating a GIF Writer and writing a buffered image to a file. When writing is 50% done, I am aborting the write process by calling writer.abort(). After that I am trying to reuse the same writer to write another buffered image. I noticed that the writing process gets aborted as soon as it starts. Looks like the abort flag is not cleared at the begining of each write operation. Writer.abort() method indeed specifies that writer must clear the abort flag before starting the writing process.
      This works fine for JPG, PNG, BMP. This is reproducible with Mustang-b39 on all platforms.

      I have attached a sample test and a sample image. Run it as follows:
      java WriterReuseTest GIF <image attached>
      If you see the second write process being aborted as soon as it starts, the bug is reproduced.
      ###@###.### 2005-06-09 11:54:09 GMT

            bae Andrew Brygin
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: