Y
Hacker News
new
|
ask
|
show
|
jobs
by
dasyatidprime
1063 days ago
It's possible to use a type parameter in a throws clause in Java, last I checked (as I also mentioned in more detail above). But it doesn't seem to be common practice, so interop is still a disaster.
1 comments
Quekid5
1063 days ago
That only works up to one checked exception type, because Java doesn't have anonymous union types.
It really is a lose-lose unless Java grows a more powerful system around this.
link
It really is a lose-lose unless Java grows a more powerful system around this.