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

SeekForwardOnly and AllowSearch should not be set to the same value(ImageIO bug)

XMLWordPrintable

    • beta
    • generic
    • generic
    • Verified


      SeekForwardOnly and AllowSearch are set to the same value, but they still do not throw exception for PNG and GIF images. It works fine for JPEG image.

      Run the Sample Code. You will get a frame with 3 buttons.
      Click LoadGIF button. If an image is loaded in the frame and if you don't see
      any exception then the bug is reproduced for GIF.
      Click LoadPNG button. If an image is loaded in the frame and if you don't see
      any exception then the bug is reproduced for PNG.
      Click LoadJPG button. If an image is loaded in the frame and if you don't see
      any exception then the bug is reproduced for JPG.

      If you see an exception saying that allowsearch and seekforwardonly can't be true, then it is working fine.

      Source File: ImageInsert.java
      Resource Files: Bird.gif, cup.png, flor2.jpg

            dricesunw Daniel Rice (Inactive)
            kbalasubsunw Kannan Balasubramanian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: