eclipse-jdt / eclipse.jdt.ui

Eclipse Public License 2.0
36 stars 86 forks source link

Bug: Renaming local variables causes code behavior to change #1508

Closed DongChunHao closed 1 month ago

DongChunHao commented 2 months ago

When renaming 'variable' to 'newField', Line 11 causes the variable assignment field statement to change to the field assignment itself: image

Refactoring result: image

jjohnstn commented 1 month ago

New change will cause a warning to occur if the rename may cause a collission with a field.