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

Bug: A syntax error occurred in renaming a method in the interface

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. selecting 'methodToRename' in interface I
  2. Renaming 'methodToRename' to 'equals'

Because the new method name 'equals' is the method in the existing API, it causes a compilation error when applied to refactor the new name

image

Current Result
Expected Result: A warning should be given that refactoring is not supported.
Additional Informations

DongChunHao avatar Jul 14 '24 06:07 DongChunHao