| Summary: | Rename doesn't work if there are any compilation errors | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Brett Kotch <bkotch> |
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | david_audel |
| Version: | 3.0 | ||
| Target Milestone: | 3.2 M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | 42253 | ||
| Bug Blocks: | |||
*** This bug has been marked as a duplicate of 44983 *** Verified for 3.2 M5 using build I20060215-0010. Even with bug 42253 fixed, I still cannot rename the local variable. I get following "Rename Local Variable" error dialog: "A local variable declaration or reference must be selected to activate this refactoring" Adding missing semicolon of course open correctly the refactoring dialog and local variable is the same than without semicolon => seems not to be a robust AST issue => Reopen as this is not a duplicate bug I would suggest to use an AST with recovery but unly for the rename local case. Fixed for rename local variable. |
Type in the following code: int abc = 0; if (true) { System.out.println(abc) } Try to rename abc. It will fail because system.out.println doesn't have a semicolon. I should be allowed to rename even if there are comilation errors.