Files
codebase-memory-mcp/internal
Martin Vogel 0366dfe70c fix(java): resolve a package-qualified static-import class by short name
`import static demo.Util.twice` records the import target package-qualified
("demo.Util"), but the class is registered under the project/directory QN
("<proj>.Util") when the `package` declaration and the file's directory differ
(e.g. a flat layout). java_lookup_method("demo.Util", ...) then missed, the call
fell through to the lsp_static_import_text fallback, and the precise
lsp_static_import strategy was absent.

On a miss, resolve the import's class by its short name against the registry and
retry the method lookup, preferring an in-module match. Mirrors the C++
short-name type fallback.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-06-28 12:34:15 +02:00
..