Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

try-with-resources not supported below API 19

オープン
#2 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, java
領域
mobile

調査の方向性

まず try-with-resources ブロックを見つけ、manifest に宣言されている minimum SDK を確認します。参照されている Android の互換性に関する issue を確認し、現在のコードがどの API レベルをサポートしているかを判断します。API 19 未満との互換性について明確な判断に至り、必要な対応を記録または実装できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I noticed that a few of the classes use try-with-resources blocks, which are not supported below API 19. However, the minimum SDK in the manifest is listed as 9.

It seems that try-with-resources "mostly work" down to API 15.
See: https://code.google.com/p/android/issues/detail?id=73483)

I haven't heard of anyone successfully using try-with-resources below API 14, and the support below 19 doesn't appear to be guaranteed. Is there a reason for using try-with-resources in this codebase other than convenience?

主要言語
Java
スター
1.4k
フォーク
193
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

facebook/SoLoader のほかの issue

facebook/SoLoader の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。