JDK-4974934 : wait unprotected from spurious wakeups in EventQueue.invokeAndWait
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0,5.0,6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,solaris_8
  • CPU: generic
  • Submitted: 2004-01-07
  • Updated: 2011-05-16
  • Resolved: 2011-05-16
Related Reports
Duplicate :  
Duplicate :  
Description
I notice that the implementation of EventQueue.invokeAndWait does not take into consideration to new/clarified spurious wakeup behaviour of Object.wait. 

Comments
EVALUATION Contribution-Forum:https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?messageID=12005&forumID=1463
15-03-2006

EVALUATION Moved this to Dolphin based on suggestion by responsible engineer on 2005-12-12.
06-01-2006

SUGGESTED FIX http://sa.sfbay.sun.com/projects/awt_data/dolphin/4974934
12-12-2005

EVALUATION Name: osR10079 Date: 01/08/2004 To fix this problem we should add one more field to InvocationEvent (something like wasCompleted) and check it. But EventQueue and InvocationEvent in different packages, so we should add some public method to access this field and this is API change and thus it's too late for tiger. ###@###.### Jan 08, 2004 ======================================================================
14-08-2004