Skip to content

IntelliJ reports classes that refer to their subclasses in static initializers or static fields #285

@basil

Description

@basil

According to IntelliJ

such references can cause JVM-level deadlocks in multithreaded environment, when one thread tries to load the superclass and another thread tries to load the subclass at the same time

  • Referencing subclass StaticFunction from superclass Function initializer might lead to class loading deadlock
  • Referencing subclass ByDepth from superclass TreePruner initializer might lead to class loading deadlock

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions