mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-01 03:30:34 +00:00
8032864: [macosx] sigsegv (0Xb) Being Generated When Starting JDev With Voiceover Running
Reviewed-by: anthony, serb
This commit is contained in:
parent
f148110b41
commit
a5e2b3c3fb
@ -1108,7 +1108,10 @@ static NSObject *sAttributeNamesLOCK = nil;
|
||||
JNIEnv *env = [ThreadUtilities getJNIEnv];
|
||||
id value = nil;
|
||||
|
||||
NSWindow* hostWindow = [[self->fView window] retain];
|
||||
jobject focused = JNFCallStaticObjectMethod(env, jm_getFocusOwner, fComponent); // AWT_THREADING Safe (AWTRunLoop)
|
||||
[hostWindow release];
|
||||
|
||||
if (focused != NULL) {
|
||||
if (JNFIsInstanceOf(env, focused, &sjc_Accessible)) {
|
||||
value = [JavaComponentAccessibility createWithAccessible:focused withEnv:env withView:fView];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user