[ 
https://issues.apache.org/jira/browse/LUCENE-9672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Namgyu Kim updated LUCENE-9672:
-------------------------------
    Description: 
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 looks simple, but providing the ability to check each class's inheritance 
relationship at build time can be harder than I think.
 (I didn't check 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.

  was:
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.


> 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
>            Priority: Major
>
> 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 looks simple, but providing the ability to check each class's inheritance 
> relationship at build time can be harder than I think.
>  (I didn't check 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to