[jdk17u-dev] RFR: JDK-8283347: [macos] Bad JNI lookup accessibilityHitTest is shown when Screen magnifier is enabled

Matthias Baesken mbaesken at openjdk.java.net
Wed Apr 6 12:19:16 UTC 2022


Hi, we get unwanted exceptions on macOS in jdk17 when Screen magnifier is enabled.
Looks like this was caused by a wrong placing of  GET_CACCESSIBILITY_CLASS_RETURN in
  (id)accessibilityHitTest:(NSPoint)point  .

It was placed after the DECLARE_CLASS_RETURN and DECLARE_STATIC_METHOD_RETURN clauses. That is incorrect. So after i moved it up before the DECLARE_CLASS_RETURN clause the bug stops reproducing.
Thanks to Alexander Zuev for the analysis. 

Best regards, Matthias

-------------

Commit messages:
 - JDK-8283347

Changes: https://git.openjdk.java.net/jdk17u-dev/pull/338/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17u-dev&pr=338&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8283347
  Stats: 2 lines in 1 file changed: 1 ins; 1 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk17u-dev/pull/338.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17u-dev pull/338/head:pull/338

PR: https://git.openjdk.java.net/jdk17u-dev/pull/338


More information about the jdk-updates-dev mailing list