rmuir commented on PR #14633:
URL: https://github.com/apache/lucene/pull/14633#issuecomment-2869000472

   > 
   > I thought it did not work with multi-catch, but that it works here. Of 
course you could make a more horrible hack, but some people don't like this in 
the Lucene community (its known as sneaky rethrow....).
   
   But what if the horrible hack (sneakythrow) could be contained to just be 
inside these utility methods (IOUtils), to simplify exception handling 
elsewhere? 
   
   IMO this would be worth it, even if it saves just one line at these call 
sites. Historically the exception handling code has been problematic (easy to 
leak files or mask important information, accidentally suppress the wrong 
thing, etc etc)...
   
   Maybe we should look into it as a followup?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to