JDK-7011446 : ./windows/classes/sun/awt/windows/WToolkit.java needs to avoid spurious wakeup
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u22
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-01-11
  • Updated: 2011-05-17
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b128Fixed
Description
./windows/classes/sun/awt/windows/WToolkit.java seems to need implementation(ex. "while" loop) to avoid spurious wakeup at the following source code portion in jdk6u22.


src/windows/classes/sun/awt/windows/WToolkit.java
...
 249             try {
 250                 wait();
 251             }
...
======

Comments
SUGGESTED FIX http://hg.openjdk.java.net/jdk7/awt/jdk/rev/5d4723944cbd
2011-01-20

EVALUATION Use wait loop idiom as suggested.
2011-01-12