RFR: 8342281: Deprecate for removal javax.sound.sampled.AudioPermission [v2]

Phil Race prr at openjdk.org
Wed Nov 20 23:14:29 UTC 2024


On Wed, 20 Nov 2024 22:50:53 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

> Minor: These are on unchanged lines. Since AudioSystem.getLine(infos[0]) no longer throws security exception, the SecurityException catch block can be removed.
> 
> ```
>     try {
>         l = AudioSystem.getLine(infos[0]);
>     } catch(SecurityException lue) {
>         log.println("SecurityException");
>         return STATUS_PASSED;
>     }
> ```

Good catch. It was so far out of sight I missed that. I've removed it.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22284#discussion_r1851101280


More information about the client-libs-dev mailing list