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

Inline methods cause compilation errors

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 'makeSound'
  2. perform inlining method refactoring

Because the inline method is the method that implements the interface, when the inline method refactoring is performed, there is no method that implements the interface, resulting in a compilation error

image

Current Result :

image

Expected Result : Check during the execution of the introverted method and give a warning if this occurs

DongChunHao avatar Jul 14 '24 07:07 DongChunHao