RFR: 8146918: ConcurrentModificationException in MediaPlayer [v3]

Alexander Matveev almatvee at openjdk.org
Mon Apr 22 19:51:34 UTC 2024


On Mon, 22 Apr 2024 15:05:07 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.
>
> n-gabe has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove needless copyright year

Looks good.

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

Marked as reviewed by almatvee (Reviewer).

PR Review: https://git.openjdk.org/jfx/pull/1377#pullrequestreview-2015678699


More information about the openjfx-dev mailing list