8049583: Test closed/java/awt/List/ListMultipleSelectTest/ListMultipleSelectTest fails on Window XP
Reviewed-by: pchelko, anthony
This commit is contained in:
parent
a3d9307fb9
commit
64522e8f30
@ -6935,9 +6935,9 @@ Java_sun_awt_windows_WComponentPeer_nativeHandlesWheelScrolling (JNIEnv* env,
|
||||
{
|
||||
TRY;
|
||||
|
||||
return JNI_IS_TRUE(AwtToolkit::GetInstance().SyncCall(
|
||||
return (jboolean)AwtToolkit::GetInstance().SyncCall(
|
||||
(void *(*)(void *))AwtComponent::_NativeHandlesWheelScrolling,
|
||||
env->NewGlobalRef(self)));
|
||||
env->NewGlobalRef(self));
|
||||
// global ref is deleted in _NativeHandlesWheelScrolling
|
||||
|
||||
CATCH_BAD_ALLOC_RET(NULL);
|
||||
@ -6956,9 +6956,9 @@ Java_sun_awt_windows_WComponentPeer_isObscured(JNIEnv* env,
|
||||
|
||||
jobject selfGlobalRef = env->NewGlobalRef(self);
|
||||
|
||||
return JNI_IS_TRUE(AwtToolkit::GetInstance().SyncCall(
|
||||
return (jboolean)AwtToolkit::GetInstance().SyncCall(
|
||||
(void*(*)(void*))AwtComponent::_IsObscured,
|
||||
(void *)selfGlobalRef));
|
||||
(void *)selfGlobalRef);
|
||||
// selfGlobalRef is deleted in _IsObscured
|
||||
|
||||
CATCH_BAD_ALLOC_RET(NULL);
|
||||
|
@ -1018,8 +1018,8 @@ Java_sun_awt_windows_WListPeer_isSelected(JNIEnv *env, jobject self,
|
||||
ses->list = env->NewGlobalRef(self);
|
||||
ses->index = index;
|
||||
|
||||
return JNI_IS_TRUE(AwtToolkit::GetInstance().SyncCall(
|
||||
(void *(*)(void *))AwtList::_IsSelected, ses));
|
||||
return (jboolean)AwtToolkit::GetInstance().SyncCall(
|
||||
(void *(*)(void *))AwtList::_IsSelected, ses);
|
||||
// global ref and ses are deleted in _IsSelected
|
||||
|
||||
CATCH_BAD_ALLOC_RET(FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user