vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

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

Open DongChunHao opened this issue 1 year ago • 0 comments

[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'

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

DongChunHao avatar Jul 14 '24 06:07 DongChunHao