No reviewers
Labels
No labels
bug
build
enhancement
headless
P1-critical
P2-high
P3-medium
P4-low
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-tools/jdt-mcp-server!41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/27-28-readiness-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
IncrementalProjectBuilder.INCREMENTAL_BUILDto ensure the JDT index is fully built before tools executeAtomicBooleanwithCountDownLatchinHeadlessApplicationand adds a readiness gate inMcpProtocolHandler.handleToolsCall()that blocks tool execution until import + build are completejdt_get_version,jdt_list_projects,jdt_import_project) are exempt and can run during importChanges
HeadlessApplication.javaCountDownLatch+awaitReady()API, auto-build + explicit workspace build after importMcpProtocolHandler.javaisImportSafeTool()whitelistNote on #29
Issue #29 (Virtual vs Non-Virtual Method Processor) is already implemented in
RefactoringTools.java(lines 1577-1611) — can be closed.Test plan
jdt_list_projectsimmediately → should return withstatus: importingjdt_find_referencesduring import → should block and succeed after import completestests/smoke-test.sh