You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Namgyu Kim (Jira)" <ji...@apache.org> on 2021/01/15 21:31:00 UTC

[jira] [Created] (LUCENE-9672) Detects deadlock occurring at static initialization timing

Namgyu Kim created LUCENE-9672:
----------------------------------

             Summary: Detects deadlock occurring at static initialization timing
                 Key: LUCENE-9672
                 URL: https://issues.apache.org/jira/browse/LUCENE-9672
             Project: Lucene - Core
          Issue Type: Task
            Reporter: Namgyu Kim


This issue relates to LUCENE-9661.

Deadlock can be happened when a parent class uses a child class at static initialization timing.
 Currently we don't check it at build time, so we can push the code to repository even if there's a problem.
 So we need some detecting feature for it.

IntelliJ provides an inspection for this, but Eclipse(ECJ Compiler) doesn't.
(What about NetBeans...?)

To make it without IDE dependencies, we just need a script to check if the parent class has code that directly references to the child class during static initialization.

It's easy to say, but providing the ability to check each class's inheritance relationship at build time can be harder than I think.
 (I didn't think about some technical details.)

Anyway, if there is a tool(static checker?) that can check this problem even if it is not the above method, it would be a great help to the stability of our project.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org