Skip to content

Commit 957f720

Browse files
committed
fix: resolve java method calls to long signature definitions correctly
1 parent fbe4254 commit 957f720

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lang/collect/collect.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,12 @@ func (c *Collector) ScannerByJavaIPC(ctx context.Context) ([]*DocumentSymbol, er
852852
}
853853
if n := m.GetName(); n != "" {
854854
methodSymByKey[methodKey(fqcn, n)] = msym
855+
shortName := strings.TrimSpace(n)
856+
parts := strings.Split(shortName, " ")
857+
shortName = parts[len(parts)-1]
858+
if shortName != "" && shortName != n {
859+
methodSymByKey[methodKey(fqcn, shortName)] = msym
860+
}
855861
}
856862

857863
// Fill functionInfo

0 commit comments

Comments
 (0)