Skip to content
Permalink
Browse files
8263846: Bad JNI lookup getFocusOwner in accessibility code on Mac OS X
Backport-of: 118a49fc9699590fb5c935729da64dac5e61f26d
  • Loading branch information
Olga Mikhaltsova authored and Yuri Nesterenko committed Apr 21, 2021
1 parent a44e891 commit dc56503b60afea7d753fba5b4f4fdfc97bcd9959
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m
@@ -1488,6 +1488,7 @@ - (id)accessibilityHitTest:(NSPoint)point withEnv:(JNIEnv *)env
- (id)accessibilityFocusedUIElement
{
JNIEnv *env = [ThreadUtilities getJNIEnv];
GET_CACCESSIBILITY_CLASS_RETURN(nil);
DECLARE_STATIC_METHOD_RETURN(jm_getFocusOwner, sjc_CAccessibility, "getFocusOwner",
"(Ljava/awt/Component;)Ljavax/accessibility/Accessible;", nil);
id value = nil;

1 comment on commit dc56503

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on dc56503 Apr 21, 2021

Please sign in to comment.