RFR: 8329667: [macos] Issue with JTree related fix for JDK-8317771 [v4]

Alexander Zuev kizune at openjdk.org
Fri May 24 06:02:02 UTC 2024


On Thu, 23 May 2024 12:45:31 GMT, Artem Semenov <asemenov at openjdk.org> wrote:

>> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Replaced NULL with nil in OutlineAccessibility - functionally it has no effect but it is more uiform and according to the ObjectibeC convention where objects are referred as nil and references to the primitives as NULL.
>
> src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/OutlineAccessibility.m line 141:
> 
>> 139:     [super postSelectedCellsChanged];
>> 140: }
>> 141: 
> 
> It seems to me that it is also worth defining a destructor that will destroy the cache before destroying the instance.

The problem is that on Java side we are notified when the accessibility is being enabled but we have no notification of when it is no longer used so we do not deliberately release native peers and in my testing even when i add dealloc function to the class it is never being called.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19255#discussion_r1612846856


More information about the client-libs-dev mailing list