RFR: 8146918: ConcurrentModificationException in MediaPlayer
Alexander Matveev
almatvee at openjdk.org
Fri Apr 19 00:40:02 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.
Do we have a test application to reproduce this issue? I tired to create one based on bug description, but was not able to reproduce issue.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1377#issuecomment-2065544045
More information about the openjfx-dev
mailing list