RFR: 8146918: ConcurrentModificationException in MediaPlayer

n-gabe duke at openjdk.org
Sun Apr 21 14:39:46 UTC 2024


On Thu, 22 Feb 2024 17:16:42 GMT, n-gabe <duke at openjdk.org> wrote:

> There is a ConcurrentModificationException in MediaPlayer when removing a MediaView from it. The root cause is that you can't iterate over a HashSet with for (WeakReference<MediaView> vref : viewRefs) and removing items from the collection by viewRefs.remove(vref); within this loop.

Sure, done.

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

PR Comment: https://git.openjdk.org/jfx/pull/1377#issuecomment-2068067764


More information about the openjfx-dev mailing list