redhat-developer / vscode-java

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

Inline methods cause compilation errors #3709

Open DongChunHao opened 2 months ago

DongChunHao commented 2 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. 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