csense-oss / idea-kotlin-checked-exceptions

A plugin that adds errors / hints / quickfix related to checked exceptions for kotlin.
MIT License
25 stars 2 forks source link

The highlight cannot be turned off using try + catch (exception) and @Throw(Exception::class). You must use @Throw(Throwable::class) to turn it off #25

Closed RiniceSiberia closed 8 months ago

RiniceSiberia commented 8 months ago

QQ截图20240306095135

Tvede-dk commented 8 months ago

Fixed in 2.1.1

RiniceSiberia commented 7 months ago

it hasn't been fixed QQ截图20240327103741 QQ截图20240327103900

Tvede-dk commented 7 months ago

Hmm There are really 2 cases 1) (the fixed one) is where the the caught exception was a kotlin exception (with type alias) 2) (this is not fixed) is where the caught exception is a java exception. So if both are kotlin exceptions then that is another issue. eg: image

However a simple test yields this image

But adding the also is what triggers this. image

Thus this is actually a new issue :) https://github.com/csense-oss/idea-kotlin-checked-exceptions/issues/26