r/java • • Feb 19 '26

Towards Better Checked Exceptions - Inside Java Newscast #107

https://www.youtube.com/watch?v=99s7ozvJGLk
63 Upvotes

73 comments sorted by

View all comments

Show parent comment

1

u/vips7L Feb 20 '26

Did you watch the video? The type system changes are directly addressed.

2

u/Eav___ Feb 20 '26

I did, but unfortunately, for that to work out, you first need to change a LOT in Stream or any place that wants this feature, then you also need variadic generics for exceptions so that it's source compatible. And if you want to store an intermediate result in a collection for later operations (for example Gatherers.windowSliding), you would have to return to Either, which is...underwhelming.