test/java/awt/print/PaintSetEnabledDeadlock/PaintSetEnabledDeadlock.java freezes on exit

XMLWordPrintable

    • b13
    • x86
    • windows_7
    • Verified

        Method TestPanel.stop() stops secondary thread and waits for the moment it is finished using Thread.wait():

            public void stop() {
                active = false;
                try {
                    synchronized (sync) {
                        sync.notify();
                    }
                    synchronized (thread) {
                        thread.wait();
                    }
                } catch (InterruptedException ex) {
                }
            }

        Usually system 'notify' occurs for that wait() and the test exits normally, but on some machines (i.e. stt-96-vmw5) it doesn't happen and the test gets frozen.
        To resolve this issue 'waiting' code should be rewritten to guarantee the notification of thread's finishing.

              Assignee:
              Oleg Pekhovskiy (Inactive)
              Reporter:
              Oleg Pekhovskiy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: