mbien opened a new pull request, #9801:
URL: https://github.com/apache/netbeans/pull/9801

   `SourcePath` filtered the source path to roots whose usages index passed 
`hasSourceCache(root, true)`, which only sees persistent, `INITIALIZED` 
indices. 
   
   Roots with a transient index (lazily created at project load, not re-indexed 
in the current session) were silently dropped, so sources-only Find Usages 
searches missed their usages.
   
   Use `hasSourceCache(root, false)`, which also sees transient indices and 
does not require `INITIALIZED`, matching what
   `ClassIndex.createQueriesForRoots` queries anyway.
   
   Adds a regression test in `SourcePathTest` reproducing the transient index 
state.
   
   fixes #9685
   
   Assisted-by: qwen3.8-27b


-- 
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

Reply via email to