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

Abort mechanism of ImageReader and ImageWriter should be made thread safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta
    • generic
    • solaris_7

        The ImageReader and ImageWriter classes contain an instance variable
      'abortFlag' that may be concurrently read by a thread performing a read
      or write and modified by another thread, say the GUI thread, that wishes
      to abort the read or write in progress.

        This technique is not thread safe, and should be fixed by making the
      'abortFlag' variable private and adding protected 'abortRequested' and
      'clearAbortRequest' methods for use by subclasses.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: