apache / apache/maven-scripting-plugin
UncheckedIOException
- 主要言語
- Java
- スター
- 15
- フォーク
- 10
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
### Affected version
HEAD
### Bug description
There are several UncheckedIOExceptions for issues that can definitely happen, and that are not handled where they should be. E.g.
```
protected Object eval(ScriptEngine engine, ScriptContext context) throws ScriptException {
try (FileReader reader = new FileReader(scriptFile)) {
return engine.eval(reader, context);
} catch (IOException ex) {
throw new UncheckedIOException(scriptFile + " caused:", ex);
}
}
```
This is risky and bug prone. Ideally these should be changed to IOException, but if API compatibility prevents that it looks like most could be replaced with a ScriptException instead.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
evalメソッドとFileReader/UncheckedIOExceptionの例を含むScriptEngineの評価コードを特定し、その後、plugin内の他のUncheckedIOExceptionパスを確認します。各ケースでIOExceptionを公開できるか、またはScriptExceptionとのAPI互換性を維持する必要があるかを確認します。不適切なunchecked例外が一貫して置き換えられ、影響を受ける動作が既存のテストスイートでカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100