This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If at least one method throws checked exceptions and has SneakyThrows annotation then "Use specific catch" hint is applied to "package" declaration. Also an attempt to use this hint breaks the structure of a class.
Project Lombok specific, I think (SneakyThrows). I don't understand what "hint is applied to package declaration" means -- could you give an example source ?
(In reply to Svata Dedic from comment #1) > Project Lombok specific, I think (SneakyThrows). I don't understand what > "hint is applied to package declaration" means -- could you give an example > source ? I've meant that the "package" reserved word is highlighted by that hint.
P.S. You're right. "Lombok" library is used in my project.
As we do not know Lombok much, a code example would greatly help. I am also not sure whether the culprit is not the lombok project itself - some generated Tree nodes are not properly marked as synthetic, so the IDE suggests changes on (lombok-reported) locations which do not match the Tree contents.
(In reply to Svata Dedic from comment #4) > As we do not know Lombok much, a code example would greatly help. > I am also not sure whether the culprit is not the lombok project itself - > some generated Tree nodes are not properly marked as synthetic, so the IDE > suggests changes on (lombok-reported) locations which do not match the Tree > contents. Conditions of the issue are very simple. And I described them in the first comment. But here code example is: package some_project; import lombok.SneakyThrows; public class SomeClass { @SneakyThrows public void someMethod() { throw new Exception(); } }