Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

WeakDataFile has unsafe collection usage #11

@glassfishrobot

Description

@glassfishrobot

WeakDataFile maintains a static reference list of current instances of the class (the refList member variable). This is a shared static List, but the implementation used (ArrayList) is not safe for concurrent usage. concurrent modification of an ArrayList can cause all sorts of chaos in this class, possibly leading to leaked references, lost references, or random exceptions during usage.

Affected Versions

[1.9.2]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions