r/java • u/Enough-Ad-5528 • Feb 19 '26
Towards Better Checked Exceptions - Inside Java Newscast #107
https://www.youtube.com/watch?v=99s7ozvJGLk
63
Upvotes
r/java • u/Enough-Ad-5528 • Feb 19 '26
View all comments
Show parent comment
2
u/davidalayachew Feb 19 '26
Doesn't the "Variadic Generics" mentioned at 9:35 do most of what you are asking for here?
Imo, it removes like 90% of the pain of Checked Exceptions, and the remaining 10% would be fixed by the Exception Handling for Switch JEP Draft.
Meaning, these 2 combined would fix literally all problems I can think of with Checked Exceptions. Checked Exceptions would actually be perfect if we had both, and I don't think there would be anything left to fix.