changeset 10958:7afec3ed5ab5

8062606: Fix a typo in java.awt.Robot class Reviewed-by: yan, serb
author dermashov
date Fri, 31 Oct 2014 12:38:46 +0300
parents 4f6bff961a31
children 61e00d0b6a23
files src/java.desktop/share/classes/java/awt/Robot.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/java/awt/Robot.java	Thu Oct 30 13:36:44 2014 -0700
+++ b/src/java.desktop/share/classes/java/awt/Robot.java	Fri Oct 31 12:38:46 2014 +0300
@@ -562,7 +562,7 @@
         try {
             SunToolkit.flushPendingEvents();
             // 7185258: realSync() call blocks all DnD tests on OS X
-            if (AccessController.doPrivileged(OSInfo.getOSTypeAction()) = OSInfo.OSType.MACOSX) {
+            if (AccessController.doPrivileged(OSInfo.getOSTypeAction()) == OSInfo.OSType.MACOSX) {
                 // post a dummy event to the queue so we know when
                 // all the events before it have been processed
                 EventQueue.invokeAndWait( new Runnable() {