RFR: 8278612: test/jdk/java/awt/dnd/RemoveDropTargetCrashTest crashes with VoiceOver on macOS

Anton Tarasov ant at openjdk.java.net
Wed Dec 22 12:49:17 UTC 2021


On Mon, 13 Dec 2021 20:08:11 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> … VoiceOver on macOS
>
> src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/TabButtonAccessibility.m line 62:
> 
>> 60: {
>> 61:     if (fTabGroupAxContext == NULL) {
>> 62:         id parent = [self parent];
> 
> Probably we can sanitize all casts to (CommonComponentAccessibility *) via some utility method which will check the type and then cast, so all calling code will get a CommonComponentAccessibility or nil?

@mrserb Thanks, I did that.  I had to re-submit PR for jdk18, please proceed in https://github.com/openjdk/jdk18/pull/65

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

PR: https://git.openjdk.java.net/jdk/pull/6816



More information about the client-libs-dev mailing list