Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
erik_seaberg
· 1y ago · 0 comments
Will the compiler infer that a lambda or a method ref implements Func with its exception type param, or do you have to rewrite call sites?
Comments
[–]
layer8
1y ago
The compiler already infers that in current Java for one checked exception type, and also for several exception types at least in some cases (the latter seems to be a little more buggy in the current implementation).