RFR: 8365569: Remove finalize from JavaSoundAudioClip.java

Phil Race prr at openjdk.org
Thu Aug 14 17:35:27 UTC 2025


This refactors com/sun/media/sound/JavaSoundAudioClip.java so that most of the implementation is in a delegate
com/sun/media/sound/JavaSoundAudioClipDelegate.java

Then a disposer can be used to free the audio resources held by the delegate when the JavaSoundAudioClip becomes unreachable.

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

Commit messages:
 - 8365569
 - 8365569

Changes: https://git.openjdk.org/jdk/pull/26784/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26784&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8365569
  Stats: 848 lines in 2 files changed: 455 ins; 360 del; 33 mod
  Patch: https://git.openjdk.org/jdk/pull/26784.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26784/head:pull/26784

PR: https://git.openjdk.org/jdk/pull/26784


More information about the client-libs-dev mailing list