redhat-developer / redhat-developer/vscode-java
Refactoring error caused by inline implementation interface method
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
[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 "myMethod()"
2. click “Refacator-inline method”
interface MyInterface {
default void myMethod() {
System.out.println("Inline method in default method of Inheriting interface classes");
}
}
class cxlass implements MyInterface {
public static void main(String[] args) {
cxlass obj = new cxlass();
((MyInterface) obj).myMethod();
}
// inline method
@Override
public void myMethod() {
// TODO Auto-generated method stub
}
}
refactoring result:
reason: When refactoring inline methods, there is no interface method that cannot be refactored
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供された Java インターフェースと Visual Studio Code の “Refactor-inline method” コマンドを使って問題を再現します。インラインメソッドのリファクタリングのエントリーポイントを追跡し、選択したメソッドがインターフェースのデフォルトメソッドをオーバーライドする場合の結果を確認します。報告された誤った結果なしにリファクタリングが完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript, vscode
- 領域
- developer-experience, devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100