On Fri, 15 Aug 2025 18:59:22 GMT, Phil Race <p...@openjdk.org> wrote:

>I can't see that dispose or finalize would do anything to ensure that is 
>called, or introduce any timing issues either way. So if there's a problem it 
>is un-related.

Maybe disableNativeIME is called when the top level Window is disposed, and 
after that there are no more references to WInputMethod? In that case, it is 
safe to call it from finalize(), but it might not be as safe to call it from 
dispose(), which mighe be called before "WInputMethod.disableNativeIME"?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26706#discussion_r2279803095

Reply via email to