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

GIFWriter.prepareWriteSequence() does not throw IllegalStateException when output is not set

XMLWordPrintable

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

      GIF Writer is supposed to throw an IllegalStateException when calling prepareWriteSequence() without setting the output for the GIF Writer. But current implementation of GIF Writer ignores this check and does not do anything when output is null.

      This is reproducible on Mustang-b39 on all platforms. Not reproducible for PNG, JPG and BMP writers.

      I have attached a sample test. Execute the sample test. If you don't see any exception on the console, the bug is reproduced.
      ###@###.### 2005-06-13 11:32:56 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: