Why doesn't Java support generic Throwables?

Posted by polygenelubricants on Stack Overflow See other posts from Stack Overflow or by polygenelubricants
Published on 2010-03-15T01:53:01Z Indexed on 2010/03/15 1:59 UTC
Read the original article Hit count: 294

class Bouncy<T> extends Throwable {     
}
// Error: the generic class Bouncy<T> may not subclass java.lang.Throwable

Why doesn't Java support generic Throwables?

© Stack Overflow or respective owner

Related posts about java

Related posts about generics