redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.08k stars 440 forks source link

Bug: Rename method refactoring causes a normal method in a subclass to be converted to a method in an inherited parent class #3706

Open DongChunHao opened 4 months ago

DongChunHao commented 4 months ago

[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 'methodToRename' in ParentClass
  2. Renam 'methodToRename' to 'newMethod'
  3. When the method name in the parent class is the same as the method name in the subclass, the method behavior in the subclass changes, and the method is an ordinary method before the refactoring, and is represented as an inherited method in the parent class after the refactoring.

image