redhat-developer / redhat-developer/vscode-java
The this keyword causes errors in the "Move Method" refactoring.
オープン
まだ誰も着手していません。
bug
refactoring
upstream
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
Select the "methodToBeMoved" method, and perform "move" refactoring
Before refactoring
class SourceClass {
TargetClass t;
void methodToBeMoved(SourceClass this) {}
}
class TargetClass{}
After refactoring
class SourceClass {
TargetClass t;
}
class TargetClass{
void methodToBeMoved(SourceClass this) {}
}
Error message: The declared type of the explicit 'this' parameter is expected to be TargetClass
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された Java の例で methodToBeMoved を選択し、Move Method リファクタリングを実行して VS Code Java extension で問題を再現します。明示的な this パラメーターに対する Move Method の処理を調査します。リファクタリングが宣言された型に関するエラーなしで完了し、有効な Java を生成すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100