File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/java.desktop/share/classes/com/sun/media/sound
test/jdk/javax/sound/sampled/Clip Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1297,8 +1297,9 @@ public void run() {
12971297 }
12981298 }
12991299 while (doIO && thread == curThread ) {
1300- if (newFramePosition >= 0 ) {
1301- clipBytePosition = newFramePosition * frameSize ;
1300+ int npf = newFramePosition ; // copy into local variable
1301+ if (npf >= 0 ) {
1302+ clipBytePosition = npf * frameSize ;
13021303 newFramePosition = -1 ;
13031304 }
13041305 int endFrame = getFrameLength () - 1 ;
Original file line number Diff line number Diff line change 2828
2929/**
3030 * @test
31- * @bug 8266421
31+ * @bug 8266421 8269091
3232 * @summary Tests that Clip.setFramePosition/setMicrosecondPosition do not hang.
3333 */
3434public final class SetPositionHang implements Runnable {
You can’t perform that action at this time.
0 commit comments