<AWT Dev> RFR: 8263490: [macos] Crash occurs on JPasswordField with activated InputMethod
Sergey Bylokhov
serb at openjdk.java.net
Fri Mar 12 23:37:08 UTC 2021
On Fri, 12 Mar 2021 14:55:06 GMT, Dmitry Markov <dmarkov at openjdk.org> wrote:
>> Hi,
>> Please review the fix for the issue of JPasswordField and activated InputMethod on macOS.
>> I don't think this condition is usual, but I'd like to avoid crash.
>>
>> It needs two additional checks in "AWTView attributedSubstringForProposedRange:actualRange".
>>
>> Tested test/jdk/java/awt on macOS Catalina and BigSur (both headful), and no regression was occurred.
>
> Marked as reviewed by dmarkov (Reviewer).
As far as I understand the JPasswordField is affected because it disables InputMethods by default? I wonder why in this case we even try to run something in the native code?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2959
More information about the awt-dev
mailing list