Handling for new warning?

mark.reinhold at oracle.com mark.reinhold at oracle.com
Tue Sep 24 19:31:03 UTC 2019


2019/9/24 10:31:00 -0700, openjdk at duigou.org:
> I am working on a feature for javac that adds a new lint level warning 
> for undeclared thrown RuntimeExceptions.

RuntimeExceptions are unchecked exceptions.  Do you mean to require that
they be mentioned in `throws` clauses, even though the language doesn’t
require that?  If so, why is that a good idea?

Will this check apply only to direct instances of `RuntimeException`, or
to instances of that class and all its subclasses?

- Mark


More information about the compiler-dev mailing list