On Mon, 16 Sep 2024 10:19:26 GMT, Kasper Nielsen <d...@openjdk.org> wrote:

> This would actually be super useful in a public API. I use the same "trick" 
> in some of my projects. Not because I care too much about the classfile size. 
> But it is just a lot easier on the eye.

While I understand it would be convenient, there is a reason we have checked 
exceptions in the public APIs. Users can create similar utility methods in 
their projects if they want to "hide" the exceptions as you say. If you wish to 
add public methods anyhow, I think we should consider this under a separate 
issue.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20972#issuecomment-2354746829

Reply via email to