jdt_rename_element FIELD still fails with IllegalArgumentException (regression from #20) #22
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#22
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?
Problem
jdt_rename_elementwithelementType=FIELDstill fails with the sameIllegalArgumentExceptionthat was reported in #20 and supposedly fixed in #21. The bug is reproducible with v0.2.14.Reproduction
Environment:
jdtls-mcp --version→JDT MCP Server 0.2.14)(deleted)in/proc/<PID>/fd)Call:
Error:
Analysis
The stack trace is identical to #20. The fix in #21 ("disable getter/setter renaming in headless mode") does not prevent this code path from being reached.
GetterSetterUtil.getSetterNameis still called during field rename, andProjectScope.getNodefails because there is no Eclipse project nature/preferences in headless mode.Expected Behavior
Field rename (with
preview=true) should return a preview of changes without throwing an exception.Related