Skip to content

fix: complete methods for classes loaded by multiple ClassLoaders#3218

Open
DragonFSKY wants to merge 1 commit into
alibaba:masterfrom
DragonFSKY:fix/2943-method-completion-multiple-classloaders
Open

fix: complete methods for classes loaded by multiple ClassLoaders#3218
DragonFSKY wants to merge 1 commit into
alibaba:masterfrom
DragonFSKY:fix/2943-method-completion-multiple-classloaders

Conversation

@DragonFSKY

@DragonFSKY DragonFSKY commented Jun 20, 2026

Copy link
Copy Markdown

Summary

  • collect method completion candidates from same-FQCN classes loaded by different ClassLoaders
  • keep ambiguous class-pattern matches with different class names from returning mixed method candidates
  • add regression coverage for method completion across multiple ClassLoaders

Root Cause

completeMethodName() treated multiple matched classes as ambiguous and returned no method candidates. When the same FQCN is loaded by multiple ClassLoaders, watch/trace method completion could therefore miss available methods.

Tests

  • PASS: ./mvnw -pl core -Dtest=CompletionUtilsTest test
  • PASS: git diff --check

Notes

  • This only changes method completion candidate collection for duplicate same-name class matches.
  • It does not change class search semantics or command execution behavior.
  • Broader local core/reactor checks were blocked by local JDK/native artifact setup; CI will run the full project matrix.

Fixes #2943

@CLAassistant

CLAassistant commented Jun 20, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@DragonFSKY DragonFSKY force-pushed the fix/2943-method-completion-multiple-classloaders branch from 61e081f to 5f5b231 Compare June 20, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

当一个类被多个 ClassLoader 加载时,watch/trace 等命令无法补全 method

2 participants