Add catch intention weirdness/bug?

If I have:

I'll get a red underline on the throw line. One of the options is Add Catch Clause(s). However, if I have this:

where doSomeSql() throws a SQLException. I get a lightbulb, but my only two intention options are surround with try/catch, and add to method signature. I'd like to have the option to add a catch clause in this situation, too. The weird thing is in another co-worker's installation, this works fine. We're both using 3.0.5 (build #706) on Linux. Did I somehow disable the add catch clause intention action?



1 comment
Comment actions Permalink

I've done some more playing around, and this is definitely a bug. It depends on where the cursor is in the line. I've opened #27842:



Please sign in to leave a comment.