redhat-developer / redhat-developer/vscode-java
[Bug - Go To/Navigation/References] - Does not work for Private Methods/Constructor
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
When I try to find all references for private method I get nothing. Is this desired behaviour?
Environment
- Operating System:
- JDK version:
- Visual Studio Code version:
- Java extension version:
Steps To Reproduce
- Clone https://github.com/nipafx/nox.zone
- Navigate to ResourceGatherer.java
- Go to Line 83, private static String computeResourceFileName(Path sourceFile, String resourceName) {
- Right click on computeResourceFileName method and select Go To References
Constructor
Same steps should be performed for constructor of ResourceGatherer class. When the Go To References is called on constructor it will also be blank, however the class is instansiated at ElementResolver.java at line 68
It will say that there are no references, however the method is used within the class.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
83行目の ResourceGatherer.java と ResourceGatherer コンストラクターを使って問題を再現し、その後、68行目の ElementResolver.java でのインスタンス化を確認します。private メソッドとコンストラクターに対する Go To References の結果を、クラス内でのそれらの使用箇所および報告された呼び出し箇所での使用と比較します。空の結果ではなく参照が返されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 32/100