<i18n dev> RFR: 8365180: Remove sun.awt.windows.WInputMethod.finalize()
Sergey Bylokhov
serb at openjdk.org
Fri Aug 15 20:13:09 UTC 2025
On Fri, 15 Aug 2025 18:59:22 GMT, Phil Race <prr at 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
More information about the i18n-dev
mailing list