Skip to content

Renaming the f method causes naming conflicts #3616

Open

Description

[provide a description of the issue]

Environment

Operating System: Windows11
JDK version: 17
Visual Studio Code version: 1.88
Java extension version: 1.29

Steps To Reproduce

1.select "k()"
2.click “Rename”
3. new name "m()"

public class A {
void m(Object m){
System.out.println("A");
}
}
class B extends A{
// rename k to m
void k(String m){
System.out.println("B");
}
void f(){
m("1");
}
}

result:

public class A {
void m(Object m){
System.out.println("A");
}
}
class B extends A{
// rename k to m
void m(String m){
System.out.println("B");
}
void f(){
m("1");
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions