Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
swsieber
7y ago
0 comments
Save
Share
Ah, that's because java generics don't work with exceptions.
0 comments
2 comments · 1 top-level
top
newest
oldest
vbezhenar
7y ago
· 1 in thread
What do you mean? They do work with exceptions.
swsieber
OP
7y ago
Ah, my mistake. I was thinking of generice type arguments for exception subclasses:
https://www.mscharhag.com/java/java-exceptions-and-generic-t...
That also includes generic catch clauses and inner exception types of classes with type parameters.
j
/
k
navigate · click thread line to collapse