RFR: 8356049: Need a simple way to play back a sound clip [v5]

Sergey Bylokhov serb at openjdk.org
Tue May 13 19:15:53 UTC 2025


On Fri, 9 May 2025 20:54:46 GMT, Phil Race <prr at openjdk.org> wrote:

>> A simple API to replace java.applet.AudioClip
>> 
>> CSR is now created : https://bugs.openjdk.org/browse/JDK-8356200
>
> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8356049

src/java.desktop/share/classes/javax/sound/SoundClip.java line 63:

> 61:     public static SoundClip createSoundClip(File file) throws IOException {
> 62:         if (file == null) {
> 63:             throw new IllegalArgumentException("file must not be null");

Most of the APIs in javax.sound.* throw NullPointerException for null arguments and IllegalArgumentException for other invalid parameters.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24991#discussion_r2087471460


More information about the client-libs-dev mailing list