redhat-developer / redhat-developer/vscode-java
Copy of #1251 - Unsupported SuppressWarnings("restriction")
オープン
まだ誰も着手していません。
compile
diagnostics
enhancement
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
I am using a private JRE with its included libraries. As I import these I am given an error for Restricted Access since these are private APIs. If I were in Eclipse I could add @SuppressWarnings("restriction") and get rid of it.
That same class opened in VSCode will show the import as still an error and the '@SuppressWarnings' as "unnecessary".
Environment
- Operating System: OS X 13.2
- JDK version: Standard Edition (build 1.8.0_341-b10 13_Jul_2022_11_14 Mac OS X x64(SR7 FP15))
- Visual Studio Code version: 1.75.0
- Java extension version: 1.14.0
- Import a private API like from Sun
- Receive an "Access Restriction" Error
- Add
@SuppressWarnings("restriction")to top of class declaration
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
説明されているバージョンの Java extension とプライベート JRE を使用し、import と @SuppressWarnings("restriction") の手順に従って VS Code で問題を再現します。まず、Java extension がアクセス制限の診断をどのように報告しているかを追跡します。抑制が認識され、import がエラーとして報告されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript, vscode
- 領域
- developer-experience, devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100