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

Regression in b124: problem with Robot::waitForIdle on Windows

    Details

    • Subcomponent:
    • Introduced In Build:
      b124
    • Introduced In Version:
      9
    • OS:
      windows

      Description

      Simplest example of the issue is
      javax/swing/ToolTipManager/Test6256140.java

      This test displays a JFormattedTextField with a visible tooltip.
      Robot does press 'a' and then

             robot.waitForIdle();

              if (!isTooltipShowning()) {
                  throw new RuntimeException("Tooltip is not shown");
              }

              robot.keyPress(KeyEvent.VK_ESCAPE);
              robot.keyRelease(KeyEvent.VK_ESCAPE);

      Problem is, almost always the test either hangs in robot.waitForIdle() and doesn't even enter that isTooltipShowning() or does it too fast so that tooltip is not visible yet. The first situation is typical for an individual test rerun.
      Something should be done with that ASAP.

      RULE "javax/swing/ToolTipManager/Test6256140.java" Exception java.lang.RuntimeException: Tooltip is not shown
      RULE "javax/swing/ToolTipManager/Test6256140.java" Timeout none

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arapte Ambarish Rapte
                Reporter:
                yan Yuri Nesterenko (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: