-
Enhancement
-
Resolution: Fixed
-
P4
-
8, 11, 17, 18, 19
-
b13
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8289878 | 17.0.5-oracle | Dukebot | P4 | Resolved | Fixed | b02 |
JDK-8290941 | 17.0.5 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8289986 | 11.0.17-oracle | Dukebot | P4 | Resolved | Fixed | b02 |
JDK-8290947 | 11.0.17 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8290084 | 8u351 | Dukebot | P4 | Resolved | Fixed | b03 |
This test verifies that the DefaultCaret doesn't requests focus in mouseClick and mousePressed causing the associated input verifier to fire twice.
As per
This issue was raised in JDK 1.4.0 and fixed in 1.4.1, so the test need to be failed in 1.4.0 and must pass in 1.4.1.
Testing:
In JDK 1.4.0:
$ ./j2sdk1.4.0/bin/java DefaultCaretWin
Testing L&F: javax.swing.plaf.metal.MetalLookAndFeel
shouldYieldFocus called 1
shouldYieldFocus called 2
shouldYieldFocus called 3
java.lang.RuntimeException: Test failed for javax.swing.plaf.metal.MetalLookAndFeel as InputVerifier.shouldYieldFocus() getting called 3 times on jTextField2, but it is expected to call only once.
at DefaultCaretWin.runTest(DefaultCaretWin.java:114)
at DefaultCaretWin.main(DefaultCaretWin.java:58)
In JDK 1.4.1:
$ ./j2sdk1.4.1/bin/java DefaultCaretWin
Testing L&F: javax.swing.plaf.metal.MetalLookAndFeel
shouldYieldFocus called 1
Test passed for laf: javax.swing.plaf.metal.MetalLookAndFeel
Testing L&F: com.sun.java.swing.plaf.motif.MotifLookAndFeel
shouldYieldFocus called 1
Test passed for laf: com.sun.java.swing.plaf.motif.MotifLookAndFeel
Testing L&F: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
shouldYieldFocus called 1
Test passed for laf: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
- backported by
-
JDK-8289878 Create a regression test for JDK-4532513
- Resolved
-
JDK-8289986 Create a regression test for JDK-4532513
- Resolved
-
JDK-8290084 Create a regression test for JDK-4532513
- Resolved
-
JDK-8290941 Create a regression test for JDK-4532513
- Resolved
-
JDK-8290947 Create a regression test for JDK-4532513
- Resolved
- relates to
-
JDK-4532513 DefaultCaret requests focus for click and pressed causing input verifier to fire
- Closed
- links to
-
Commit openjdk/jdk11u-dev/32d002fc
-
Commit openjdk/jdk17u-dev/77c1e0a2
-
Commit openjdk/jdk/6b34884b
-
Review openjdk/jdk11u-dev/1260
-
Review openjdk/jdk17u-dev/587
-
Review openjdk/jdk/7577