JDK-6972418 : hang while synchronizing on awt object
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u21
  • Priority: P3
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: windows
  • CPU: x86
  • Submitted: 2010-07-27
  • Updated: 2012-10-09
  • Resolved: 2012-10-09
Related Reports
Relates :  
Description
on Windows x86

Customer reports a hang in his applcation. No hang through jdk5 update 21 but starting jdk5 update 22 it is reproducible always.
Also reproducible with jdk6 update 21.

A couple of jstack traces are in the attachment.

Later the customer provided a testcase.

Also ovserved on Linux.

I could also reproduce the hang on windows with 7b96.

Comments
It's not recommended to synchronized on AWT components. In this case provided workaround must be used. This kind of deadlock can not be resolved by AWT mechanisms.
09-10-2012