8025438: [macosx] right JNFCall* method should be used in JDK-8008728 fix
Reviewed-by: serb, anthony
--- a/jdk/src/macosx/native/sun/awt/AWTWindow.m Fri Oct 04 20:13:32 2013 +0400
+++ b/jdk/src/macosx/native/sun/awt/AWTWindow.m Mon Oct 07 16:13:48 2013 +0400
@@ -366,7 +366,7 @@
- (BOOL) canBecomeMainWindow {
AWT_ASSERT_APPKIT_THREAD;
- if(!self.isEnabled){
+ if (!self.isEnabled) {
// Native system can bring up the NSWindow to
// the top even if the window is not main.
// We should bring up the modal dialog manually
@@ -377,7 +377,7 @@
if (platformWindow != NULL) {
static JNF_MEMBER_CACHE(jm_checkBlockingAndOrder, jc_CPlatformWindow,
"checkBlockingAndOrder", "()Z");
- JNFCallVoidMethod(env, platformWindow, jm_checkBlockingAndOrder);
+ JNFCallBooleanMethod(env, platformWindow, jm_checkBlockingAndOrder);
(*env)->DeleteLocalRef(env, platformWindow);
}
}