redhat-developer / vscode-java

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

Bug: Constants in enumerations must implement abstract methods, and implementation methods cannot perform inline refactoring #3710

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 'getAction()' in GREEN
  2. perform inlining method refactoring

Constants in enumerations must implement abstract methods, and implementation methods cannot perform inline refactoring

image

Current Result:

image

Expected Result: A warning should be given when selecting an abstract method implementation to perform inline method refactoring