andreaseberhoefer opened a new issue, #5105:
URL: https://github.com/apache/netbeans/issues/5105
### Apache NetBeans version
Apache NetBeans 16
### What happened
I have a project with three classes and lombok. Two classes are under
`src/main/java`:
```
class MyDataClass {
private String foo;
}
class MyMainClass {
public static void main(String ... args) {
var data = new MyData();
data.getFoo();
}
}
```
and one is under `src/test/java`
```
class MyTestClass {
void test() {
var data = new MyData();
data.getFoo();
}
}
```
When I annotate `MyData` with `@Getter`, then right click on `getFoo()` in
the navigator and do `Find Usages` there is a result for `MyMainClass` and
`MyTestClass`, as I would expect. When I add `@ToString` to the class, then
there is only one result for `MyTestClass`. Same happens when
`@EqualsAndHashCode`, `@Data` or `@Value` is present.
It seems that netbeans has a problem with the usage, when the generated code
is used by the generated class.
### How to reproduce
You can reproduce this with a gradle or maven project and the code from
above. I've tested it with both build tools.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Linux Manjaro
### JDK
java version 11.0.12-open installed via sdkman
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists