From: Tom Tromey Date: Tue, 26 Apr 2005 18:28:49 +0000 (+0000) Subject: Robot.java (waitForIdle): Call invokeAndWait in a static way. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2500ada2ff5b66d2dbafc3f357047bb8d8363e37;p=platform%2Fupstream%2Fgcc.git Robot.java (waitForIdle): Call invokeAndWait in a static way. * java/awt/Robot.java (waitForIdle): Call invokeAndWait in a static way. From-SVN: r98785 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index e7e0f15..519f9ae 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2005-04-26 Tom Tromey + + * java/awt/Robot.java (waitForIdle): Call invokeAndWait in a + static way. + 2005-04-26 Mark Wielaard * java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec diff --git a/libjava/java/awt/Robot.java b/libjava/java/awt/Robot.java index 23b6f81..8741b89 100644 --- a/libjava/java/awt/Robot.java +++ b/libjava/java/awt/Robot.java @@ -394,10 +394,9 @@ public class Robot throw new IllegalThreadStateException ("Robot: waitForIdle called from " + "the event dispatch thread"); - EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); try { - q.invokeAndWait (new Runnable () { public void run () { } }); + EventQueue.invokeAndWait (new Runnable () { public void run () { } }); } catch (InterruptedException e) {