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

   Indeed that does not work. I was under the impression that the compiler 
should be able to see that the method parameter has same type as return type by 
this. Looks like that's not fully solved. Especally as it gets harder for 
multi-catch.
   
   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....).


-- 
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