Skip to content

Commit

Permalink
Merge branch 'ikvm-jdk8u412-b07' into ikvm-jdk8u422-b05
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Jul 24, 2024
2 parents 3a0a4df + 2678c7e commit 3b6833f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions jdk/src/share/classes/com/sun/media/sound/WaveFloatFileReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,23 @@ public AudioFileFormat getAudioFileFormat(File file)

public AudioInputStream getAudioInputStream(URL url)
throws UnsupportedAudioFileException, IOException {
return getAudioInputStream(new BufferedInputStream(url.openStream()));
InputStream stream = url.openStream();
try {
return getAudioInputStream(new BufferedInputStream(stream));
} catch (Exception e) {
stream.close();
throw e;
}
}

public AudioInputStream getAudioInputStream(File file)
throws UnsupportedAudioFileException, IOException {
return getAudioInputStream(new BufferedInputStream(new FileInputStream(
file)));
InputStream stream = new FileInputStream(file);
try {
return getAudioInputStream(new BufferedInputStream(stream));
} catch (Exception e) {
stream.close();
throw e;
}
}
}
2 changes: 1 addition & 1 deletion jdk/test/TEST.ROOT
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# A "headful" test requires a graphical environment to meaningfully
# run. Tests that are not headful are "headless."

keys=2d dnd i18n intermittent randomness headful jfr
keys=2d dnd i18n intermittent randomness headful jfr printer

# Tests that must run in othervm mode
othervm.dirs=java/awt java/beans java/rmi javax/accessibility javax/imageio javax/sound javax/print javax/management com/sun/awt sun/awt sun/java2d sun/pisces sun/rmi
Expand Down

0 comments on commit 3b6833f

Please sign in to comment.