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.
Summary: | "Use specific catch" hint is applied to "package" declaration | ||
---|---|---|---|
Product: | java | Reporter: | Artyom |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | NEW --- | ||
Severity: | normal | CC: | sdedic |
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Artyom
2017-08-01 09:51:02 UTC
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(); } } |