Skip to content

Commit

Permalink
Add dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonGuy committed Oct 9, 2024
1 parent e3f9577 commit 6ab7695
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/jdk/java/awt/dnd/DnDClipboardDeadlockTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ public void run(String[] args) throws InterruptedException, AWTException {
}
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
robot.keyRelease(KeyEvent.VK_CONTROL);
if (frame != null) {
frame.dispose();
}

} catch (Throwable e) {
e.printStackTrace();
Expand Down Expand Up @@ -213,6 +216,9 @@ public void start() {
if (returnCode != CODE_OK) {
throw new RuntimeException("The test failed.");
}
if (frame != null) {
frame.dispose();
}
} // start()
} // class DnDClipboardDeadlockTest

Expand Down

0 comments on commit 6ab7695

Please sign in to comment.