Integrated: 8146918: ConcurrentModificationException in MediaPlayer
n-gabe
duke at openjdk.org
Thu Apr 25 13:00:44 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.
This pull request has now been integrated.
Changeset: d8ca38a6
Author: n-gabe <11182122+n-gabe at users.noreply.github.com>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/d8ca38a6b7ed918318b956add150a5ae9c4c0981
Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 mod
8146918: ConcurrentModificationException in MediaPlayer
Reviewed-by: almatvee
-------------
PR: https://git.openjdk.org/jfx/pull/1377
More information about the openjfx-dev
mailing list