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

Pending String deadlocks UIDefaults

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 7
    • client-libs
    • b48
    • x86
    • windows_7

        FULL PRODUCT VERSION :
        java version "1.7.0_05"
        Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
        Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.1.7601]

        A DESCRIPTION OF THE PROBLEM :
        Retrieving a value from UIDefaults which has been set to the literal string "Pending" blocks indefinitely.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Put "Pending" in UIDefaults, then retrieve it.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        "Pending" is returned.
        ACTUAL -
        Deadlock.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        public class Pending implements Runnable {
        public static void main(String[] args) {
        EventQueue.invokeLater(new Pending());
        }

        @Override
        public void run() {
        UIManager.put("foobar", "Pending");
        System.out.println(UIManager.get("foobar"));
        }
        }

        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Use new String("Pending") instead of the literal string "Pending".

              serb Sergey Bylokhov
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: