morvael commented on PR #5826:
URL: https://github.com/apache/netbeans/pull/5826#issuecomment-1588918330
SomeClass is in project A. main is in a test class in project B.
```
public static void main(String[] args) {
boolean found = false;
ResolverUtil<Object> resolver = new ResolverUtil<>();
resolver.findAnnotated(Alias.class, "some.package");
for (Class<?> c : resolver.getClasses()) {
if (c.getSimpleName().equals("SomeClass")) {
found = true;
break;
}
}
System.out.println(found ? "class found" : "class not found");
}
```
When project A is set to compile on save disabled in NB 18 the result will
be "class not found". With compile on save enabled in NB 18 or in NB 17
(regardless of compile on save setting) the result will be "class found".
--
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