-
Bug
-
Resolution: Fixed
-
P4
-
11, 16, 17
-
macOS Catalina or BigSur Japanese
-
b14
-
x86_64
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8273079 | 11.0.14-oracle | Philip Race | P4 | Resolved | Fixed | b01 |
JDK-8273055 | 11.0.13 | Toshio Nakamura | P4 | Resolved | Fixed | b05 |
JDK-8275501 | 8u321 | Suman Rajkumaar Kodandarama | P4 | Resolved | Fixed | b02 |
FULL PRODUCT VERSION :
openjdk version "17-ea" 2021-09-14
OpenJDK Runtime Environment (build 17-ea+13-1000)
OpenJDK 64-Bit Server VM (build 17-ea+13-1000, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
macOS Catalina or BigSur Japanese
A DESCRIPTION OF THE PROBLEM :
If Input Method is activated on JPasswordField, unexpected behaviors occur intermittently.
- Crash
- Exception was thrown
"Apple AWT Internal Exception: java.lang.NullPointerException"
This scenario is unusual, but I'd like to avoid crash.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
0. Add Japanese Input Method to OS
1. Launch sample JPasswordField dialog
2. Activate Japanese Input Method
3. Type some keys
EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected:
Typed keys were input.
Actual:
Crash or exception thrown or normal(keys were input)
REPRODUCIBILITY :
Intermittent
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class JPasswordFieldTest {
public static void main(String[] args) {
JFrame frame = new JFrame("Swing JPasswordField component");
JPasswordField passwordField = new JPasswordField();
frame.add(passwordField);
frame.setSize(200, 50);
frame.setVisible(true);
}
}
---------- END SOURCE ----------
openjdk version "17-ea" 2021-09-14
OpenJDK Runtime Environment (build 17-ea+13-1000)
OpenJDK 64-Bit Server VM (build 17-ea+13-1000, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
macOS Catalina or BigSur Japanese
A DESCRIPTION OF THE PROBLEM :
If Input Method is activated on JPasswordField, unexpected behaviors occur intermittently.
- Crash
- Exception was thrown
"Apple AWT Internal Exception: java.lang.NullPointerException"
This scenario is unusual, but I'd like to avoid crash.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
0. Add Japanese Input Method to OS
1. Launch sample JPasswordField dialog
2. Activate Japanese Input Method
3. Type some keys
EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected:
Typed keys were input.
Actual:
Crash or exception thrown or normal(keys were input)
REPRODUCIBILITY :
Intermittent
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class JPasswordFieldTest {
public static void main(String[] args) {
JFrame frame = new JFrame("Swing JPasswordField component");
JPasswordField passwordField = new JPasswordField();
frame.add(passwordField);
frame.setSize(200, 50);
frame.setVisible(true);
}
}
---------- END SOURCE ----------
- backported by
-
JDK-8273055 [macos] Crash occurs on JPasswordField with activated InputMethod
-
- Resolved
-
-
JDK-8273079 [macos] Crash occurs on JPasswordField with activated InputMethod
-
- Resolved
-
-
JDK-8275501 [macos] Crash occurs on JPasswordField with activated InputMethod
-
- Resolved
-
- links to
-
Commit openjdk/jdk11u-dev/45ed9e80
-
Commit openjdk/jdk/32c7fcc6
-
Review openjdk/jdk11u-dev/295
-
Review openjdk/jdk/2959
(2 links to)