Changing the default template for a catch block?
In certain project I need to respect the convention that exceptions declared in a catch block should be final, like:
try {
...
} catch (final Exception e) {
...
}
Where I can configure this in IntelliJ Ultimate?
Please sign in to leave a comment.
Looks like https://youtrack.jetbrains.com/issue/IDEA-125327 .
I do have checked "Make caught exception variables final" , as explained in the link you sent me.
Thanks.
You can't have it enabled as there is no "Make caught exception variables final" option yet, it was a suggestion from the user who submitted this bug.
And the bug is that "Make generated local variables final" option has no effect for generated catch code. As you can see the bug is not fixed yet.
Sorry, I read it too fast and thought that it referred to "Make generated parameters final", that is indeed checked in my settings.
It is a pitty it is a bug. Thanks for the feedback.