Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
basil opened this issue Nov 29, 2021 · 2 comments

Comments

@basil
Copy link
Member

basil commented Nov 29, 2021

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
@Satyamkumarnavneet
Copy link

Hey, @basil Can you please tell me what I have to do in this?

@basil
Copy link
Member Author

basil commented Feb 14, 2023

I do not know offhand what needs to be done to solve this bug. It would require independent analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants