On Sun, 26 Apr 2026 09:00:56 GMT, Alexander Zuev <[email protected]> wrote:

> Using JavaAccessibilityUtilities is not recommended

OK, this is reverted.

So to restate (because this is a little confusing for me):

Someone calls `- (NSAccessibilityRole)accessibilityRole`.
Inside that method we declare `fNSRole = [sRoles objectForKey:javaRole];`. This 
is a deprecated fallback we don't want to use/change.
Then (in the case of headers) we replace `fNSRole = NSAccessibilityHeadingRole` 
if the Mac OS version allows. (If the Mac OS version doesn't support this, then 
`fNSRole` is `nil`, because `sRoles` didn't have a key/value pair for it.)

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

PR Comment: https://git.openjdk.org/jdk/pull/30251#issuecomment-4322635266

Reply via email to