[ 
https://issues.apache.org/jira/browse/LUCENE-7470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15533489#comment-15533489
 ] 

Michael McCandless commented on LUCENE-7470:
--------------------------------------------

I think we can just poach the code from the {{tools/}} directory.

But probably we would need a new annotation {{SuppressExceptionHandlingChecks}} 
or some such for code that is doing tricky exception handling?

> Ensure Lucene sources don't swallow root cause exceptions
> ---------------------------------------------------------
>
>                 Key: LUCENE-7470
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7470
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>
> [~rcmuir] created a nice tool to look at the Java bytecode to determine 
> whether  e.g. a {{finally}} or {{catch}} clause may ignore the original root 
> cause exception, here: 
> https://github.com/rmuir/elasticsearch/tree/catchAnalyzer
> It's a fork of ES but I think maybe we can extract it and use it in Lucene.
> Unlike Python, Java unfortunately does not seem to have safeguards against 
> exceptionally handling code accidentally losing the original exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to