提交 a88266f1 编写于 作者: A azvegint

8031471: Test...

8031471: Test closed/java/awt/dnd/FileDialogDropTargetTest/FileDialogDropTargetTest.java fails on Solaris zones virtual hosts
Reviewed-by: anthony, serb
上级 fe4ee23b
/* /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -97,6 +97,7 @@ public final class XErrorHandlerUtil { ...@@ -97,6 +97,7 @@ public final class XErrorHandlerUtil {
* @param handler the synthetic error handler to set * @param handler the synthetic error handler to set
*/ */
public static void WITH_XERROR_HANDLER(XErrorHandler handler) { public static void WITH_XERROR_HANDLER(XErrorHandler handler) {
XSync();
saved_error = null; saved_error = null;
current_error_handler = handler; current_error_handler = handler;
} }
...@@ -105,15 +106,9 @@ public final class XErrorHandlerUtil { ...@@ -105,15 +106,9 @@ public final class XErrorHandlerUtil {
* Unsets a current synthetic error handler. Must be called with the acquired AWT lock. * Unsets a current synthetic error handler. Must be called with the acquired AWT lock.
*/ */
public static void RESTORE_XERROR_HANDLER() { public static void RESTORE_XERROR_HANDLER() {
RESTORE_XERROR_HANDLER(true);
}
private static void RESTORE_XERROR_HANDLER(boolean doXSync) {
if (doXSync) {
// Wait until all requests are processed by the X server // Wait until all requests are processed by the X server
// and only then uninstall the error handler. // and only then uninstall the error handler.
XSync(); XSync();
}
current_error_handler = null; current_error_handler = null;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册