Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.6.1.Release
-
Fix Version/s: 2.7.0.Release
-
Component/s: Refactoring
-
Labels:None
-
Number of attachments :
Description
Consider this code:
class Cat {
static def getYY3(Other o) { }
}
class Other { }
new Other().yY3()
And this dsld:
contribute(currentType("Other")) { property( name:"yY3", declaringType: "Cat" ) }
Rename the yy3 variable reference and the declaring getYy3 should be renamed correctly, but it is not.
Fixed. Before starting a lightweight (ie- inplace) rename, check to see if the selected word matches the name of the element being renamed. If there is no match, then we are in a situation like this bug describes. In this case, do not do a light-weight rename. Instead, raise a dialog.