jdt_rename_element: references not updated across multi-module workspace #15
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#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Environment
Problem
jdt_rename_elementreports"status": "SUCCESS"but fails to update references in many files. The rename only modifies the declaration file, not the call sites.Reproduction
1. Class Rename — partial reference updates
Renamed
GraphServiceRepository→GraphServiceProvider(interface in rdf-api module).The response showed
"changes": {"children": [], "childCount": 0}— indicating JDT found zero references to update.Same behavior for
CollectionStores→CollectionIndexandGraphQueryService4Admin→AdminGraphQueryService.2. Field Rename — zero reference updates
Renamed 6 fields in
VocabSchemaOrginterface (e.g.,HAS_NAME→NAME)."childCount": 03. Record Component Rename — partial
Renamed
GraphLocator#proxyIri→publicIri(record component).publicIri(): renamedDraft.proxyIri()/Version.proxyIri(): NOT renamed (these are separate methods callinglocator.publicIri())graphLocator.proxyIri(): NOT updated4. Method Rename on interface — only one overload
Renamed
GraphQueryService#getCurrentPublishedProxyGraph. Interface had 3 overloads:getCurrentPublishedProxyGraph(GraphLocator)— renamedgetCurrentPublishedProxyGraph(GraphLocator, int, String)— NOT renamedgetCurrentPublishedProxyGraph(IRI)— NOT renamedImplementation class
GraphQueryServiceImpl: NOT renamed for any overload.Observed Pattern
childCount: 0in the response is the indicatorAdditional: Eclipse participant errors
First call in a session often fails with:
Retry succeeds. Parallel rename calls always fail — sequential works.
Impact
In our refactoring session (rdf#1), JDT handled ~60% of declarations but 0% of cross-module references. All references had to be fixed via
sed. The"status": "SUCCESS"withchildCount: 0is misleading — it should at minimum warn that no references were found.Expected Behavior
jdt_rename_elementshould update all references across the workspacepreview: truewould)