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

Potential hang in multithreaded calls to UIDefaults.get()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.1
    • 1.3.0, 1.3.0_02
    • client-libs
    • None
    • ladybird
    • generic, x86
    • generic, solaris_7, windows_nt

        UIDefaults.get() calls wait() on itself in a synchronized block and later calls
        notify(). In a multithreaded situation it is possible for more than one thread
        to be waiting for a result, so notifyAll() should be used instead.

        See comments section for test case which can provoke a hang.

              svioletsunw Scott Violet (Inactive)
              kbr Kenneth Russell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: