RFR: 8378057: CAccessibility roleKey and AWTAccessor.AccessibleBundleAccessor are Redundant
Sergey Bylokhov
serb at openjdk.org
Tue Feb 24 06:30:35 UTC 2026
On Sun, 22 Feb 2026 19:26:37 GMT, Jeremy Wood <jwood at openjdk.org> wrote:
> This PR proposes replacing the native `roleKey` method with the `AWTAccessor.AccessibleBundleAccessor`. They appear to do the same thing.
>
> I ran all the existing jtreg tests in the javax/accessibility folder and observed no new regressions (tested on Mac).
src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessibility.java line 1041:
> 1039: String roleStr = role == null ? null :
> 1040: AWTAccessor.getAccessibleBundleAccessor().getKey(role);
> 1041: if (role != null && ignoredRoles != null &&
this can be changed to roleStr != null?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29868#discussion_r2844805891
More information about the client-libs-dev
mailing list