Skip to content

Commit

Permalink
8334711: [TEST_BUG] Compilation failed of MimeFormatsTest/MimeFormats…
Browse files Browse the repository at this point in the history
…Test.java

Reviewed-by: yan
  • Loading branch information
sashapepin authored and Yuri Nesterenko committed Aug 1, 2024
1 parent 7547abf commit 8ef8482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/awt/datatransfer/MimeFormatsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void childRun() {
ClipboardOwner owner = new ClipboardOwner() {
public void lostOwnership(Clipboard clipboard,
Transferable contents) {
System.err.println("%d exit".formatted(
System.err.println(String.format("%d exit",
System.currentTimeMillis()));
System.err.println("Exiting");
System.exit(0);
Expand All @@ -115,7 +115,7 @@ public void lostOwnership(Clipboard clipboard,
synchronized (lock) {
// Wait to let the parent retrieve the contents.
try {
System.err.println("%d wait".formatted(
System.err.println(String.format("%d wait",
System.currentTimeMillis()));
lock.wait();
} catch (InterruptedException e) {
Expand Down

1 comment on commit 8ef8482

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.