Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254085

javax/swing/text/Caret/TestCaretPositionJTextPane.java failed with "RuntimeException: Wrong caret position"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      x86_64
    • OS:
      windows

      Description

      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)*----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kizune Alexander Zuev
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: