Re:Unchecked Java: Say Goodbye to Checked Exceptions Forever
by rogerkeays on Thursday July 13, 2023 @12:38PM
(#36712033)
I think this project shows how trivial it is to convert checked exception errors to compiler warnings.
https://github.com/rogerkeays/unchecked/blob/main/Unchecked....
No need to change the type hierarchy. Just make it a compiler option.
The fact that Java has introduced UncheckedIOException, in my opinion, shows how some people in the Java community have come to believe that checked exceptions were a mistake (understanding that lambda forced the issue). There's probably not too much to be easily done at this point, but consideration for changing checked exceptions in the JDK to extend RuntimeException sure would be interesting.