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

David Smiley commented on LUCENE-7470:
--------------------------------------

This is awesome; nice work Rob!  My pet peeve bug pattern is ignoring/masking 
root exceptions -- happens all too often.  I wish javac had this built in.

If this is added to Lucene, I guess SpecialMethod.java with it's static list of 
known boxing methods etc. would need to load it's list from perhaps a simple 
file on the classpath?

I wonder if this might go to some place where it would be used more broadly?  
e.g. FindBugs  After all... why should only Lucene have all the fun?

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to