RFR: 8146918: ConcurrentModificationException in MediaPlayer

Kevin Rushforth kcr at openjdk.org
Wed Apr 24 20:28:33 UTC 2024


On Sun, 21 Apr 2024 14:37:23 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.

@n-gabe This is now ready for you to `/integrate`

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

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


More information about the openjfx-dev mailing list