Renaming an inner class also changes string literals in the source

Issue #917 resolved
Valerie Dunphy created an issue

With the source below using Refactor -> Rename on inner class Test will change the string literal also.

public class RenameTest { public void main() { String str = 'Test'; Test tst = new Test(); }

public class Test {

} }

Comments (4)

  1. Scott Wells repo owner

    Thanks for logging, Valerie. I just hit this issue myself and plan to address it this weekend for next week's build.

  2. Scott Wells repo owner

    This will be fixed in the next version. IC will no longer build references to what look like type names in string literals. You will still be able to include those in a rename by typing Shift+F6 twice and clicking Search in comments and strings, then carefully auditing other usages.

  3. Log in to comment