-
Bug
-
Resolution: Fixed
-
P4
-
16
-
b21
-
x86_64
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8282271 | 11.0.15 | Paul Hohensee | P4 | Resolved | Fixed | b04 |
The following test failed in the JDK16 CI:
javax/swing/text/Caret/TestCaretPositionJTextPane.java
Here's a snippet from the log file:
#section:main
----------messages:(5/294)----------
command: main -Dsun.java2d.uiScale=2 TestCaretPositionJTextPane
reason: User specified action: run main/othervm -Dsun.java2d.uiScale=2 TestCaretPositionJTextPane
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.desktop
elapsed time (seconds): 0.772
----------configuration:(3/43)----------
Boot Layer
add modules: java.desktop
----------System.out:(2/103)----------
mouse point java.awt.Point[x=480,y=6]
caret position java.awt.Rectangle[x=431,y=3,width=0,height=16]
----------System.err:(34/2806)----------
java.lang.RuntimeException: Wrong caret position
at TestCaretPositionJTextPane$1.mousePressed(TestCaretPositionJTextPane.java:73)
at java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:288)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6611)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6379)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4929)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4555)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4499)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Wrong caret position
----------rerun:(47/4708)*----------
javax/swing/text/Caret/TestCaretPositionJTextPane.java
Here's a snippet from the log file:
#section:main
----------messages:(5/294)----------
command: main -Dsun.java2d.uiScale=2 TestCaretPositionJTextPane
reason: User specified action: run main/othervm -Dsun.java2d.uiScale=2 TestCaretPositionJTextPane
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.desktop
elapsed time (seconds): 0.772
----------configuration:(3/43)----------
Boot Layer
add modules: java.desktop
----------System.out:(2/103)----------
mouse point java.awt.Point[x=480,y=6]
caret position java.awt.Rectangle[x=431,y=3,width=0,height=16]
----------System.err:(34/2806)----------
java.lang.RuntimeException: Wrong caret position
at TestCaretPositionJTextPane$1.mousePressed(TestCaretPositionJTextPane.java:73)
at java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:288)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6611)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6379)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4929)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4555)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4499)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Wrong caret position
----------rerun:(47/4708)*----------
- backported by
-
JDK-8282271 javax/swing/text/Caret/TestCaretPositionJTextPane.java failed with "RuntimeException: Wrong caret position"
- Resolved
- relates to
-
JDK-8232243 Wrong caret position in JTextPane on Windows with a screen resolution > 100%
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/43788445
-
Commit openjdk/jdk/51a865d6
-
Review openjdk/jdk11u-dev/829
-
Review openjdk/jdk/716
(1 links to)