RFR: 8146918: ConcurrentModificationException in MediaPlayer

Alexander Matveev almatvee at openjdk.org
Fri Apr 19 22:10:37 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.

Look good. Can you update copyright year from 2022 to 2024?

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

Changes requested by almatvee (Reviewer).

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


More information about the openjfx-dev mailing list