Skip to content

DefaultMessageHolder: unsynchronized ArrayList access in multi-threaded environment #88

Description

@elharo

Bug #6

DefaultMessageHolder.java line 33

The messages field (line 33) is a plain ArrayList accessed and mutated from multiple public methods (addMessage, newMessage, render, countMessagesOfType, etc.) without any synchronization. In a multi-threaded environment this can lead to visibility issues and ConcurrentModificationException.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions