-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"final" modifier not added to exception multi-catch block variable #3075
Comments
This is an upstream jdt issue. I can reproduce it in Eclipse. |
@snjeza sure, I should have tried that, it seemed like an upstream thing. |
@snjeza how do I reproduce this in Eclipse? Didn't find any refactor or source actions for this. |
@lbrayner Right click in the editor, select Source>Clean Up... |
@snjeza sorry, my silly mistake: The parameter e of a multi-catch block cannot be assigned. Final is useless there. Closing this. But thanks a lot for your help! |
Consider the following code:
If you request code action "Change modifiers to final where possible",
final
is only added to the firstcatch
form, even thoughfinal
could be added to the multi-catch form too.The text was updated successfully, but these errors were encountered: