Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/jdk/javax/sound/sampled/Clip/SetPositionHang.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ private static void test() throws InterruptedException {
public void run() {
System.out.println("Thread " + thread + " Start");
for (int i = 0; i < 100; i++) {
System.out.println("Thread " + thread + " Play "
+ System.currentTimeMillis() % 100000);
// System.out.println("Thread " + thread + " Play " +
// System.currentTimeMillis() % 100000);
playSound();
try {
Thread.sleep(i);
Expand All @@ -92,7 +92,7 @@ public void run() {
System.out.println("Thread " + thread + " Finish");
}

void playSound() {
private void playSound() {
if (clip.isRunning()) {
clip.stop();
}
Expand Down