Skip to content

Commit

Permalink
8283347: [macos] Bad JNI lookup accessibilityHitTest is shown when Sc…
Browse files Browse the repository at this point in the history
…reen magnifier is enabled

Reviewed-by: mdoerr
  • Loading branch information
MBaesken committed Apr 7, 2022
1 parent b5e8388 commit e78f47e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1092,11 +1092,11 @@ - (id)accessibilityHitTest:(NSPoint)point
{
JNIEnv* env = [ThreadUtilities getJNIEnv];

GET_CACCESSIBILITY_CLASS_RETURN(nil);
DECLARE_CLASS_RETURN(jc_Container, "java/awt/Container", nil);
DECLARE_STATIC_METHOD_RETURN(jm_accessibilityHitTest, sjc_CAccessibility, "accessibilityHitTest",
"(Ljava/awt/Container;FF)Ljavax/accessibility/Accessible;", nil);

GET_CACCESSIBILITY_CLASS_RETURN(nil);
// Make it into java screen coords
point.y = [[[[self view] window] screen] frame].size.height - point.y;

Expand Down

1 comment on commit e78f47e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.