Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
swsieber
7y ago
0 comments
Share
Ah, that's because java generics don't work with exceptions.
0 comments
default
newest
oldest
vbezhenar
7y ago
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