Skip to content

Rename refactor on static member should not impact aliased references #1398

@eric-milles

Description

@eric-milles

Consider the following:

import static C.m as x
class C {
  static m() {}
  static {
    this.m()
    this.&m
    C.m()
    m()
    x()
  }
}
@groovy.transform.CompileStatic
class CS {
  static m() {}
  static {
    this.m() // not C#m
    this.&m // not C#m
    C.m()
    m() // not C#m
    x()
  }
}

Rename Refactoring (Alt+Shift+R) on C#m should update "m" references but not "x" references. Currently the "x"s get changed as well. Same goes for static fields and properties.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions