Reducing "exception is never thrown in body of corresponding try statement" Error to a Warning

Jonathan Gibbons jonathan.gibbons at
Tue Nov 5 23:46:13 UTC 2019


Given that you are proposing to change JLS[1], I think  you should get 
acceptance for the proposal before you embark on creating javac changsets.

-- Jon


  Specifically I am proposing the
removal of the following section from JLS 11.2.3

On 11/5/19 3:29 PM, Mike Duigou wrote:
> Hello again;
> Hearing no specific objections to my prior suggestion 
> ( 
> to tweak compilation of checked exceptions by reducing the "exception 
> is never thrown in body of corresponding try statement" compilation 
> error to a non-fatal warning I am going to proceed with creating a 
> JIRA issue and proceeding with proposing a changeset to the 
> compiler-dev list.
> I do agree with the sentiment that this change is of somewhat limited 
> value. It is, I believe, useful and incrementally an improvement upon 
> existing behaviour and worth pursuing in absence of grander proposals.
> Cheers,
> Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list