Skip to content

ThreadSafeDoubleCheckLocking.java: Instantiating by Reflection call will be successful if you do that firstly #761

Closed
@DovahYol

Description

@DovahYol

if (instance != null) {
throw new IllegalStateException("Already initialized.");
}

Instance will be null, and you can create a singleton object by reflection without an exception.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions