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.

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

Commit messages:
 - 8263490: [macos] Crash occurs on JPasswordField with activated InputMethod

Changes: https://git.openjdk.java.net/jdk/pull/2959/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2959&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8263490
  Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2959.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2959/head:pull/2959

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

Reply via email to