Deprecation warnings with Java OpenJDK 24 - sun.misc.Unsafe usage in Firebase Admin SDK
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
調査の方向性
まず、OpenJDK 24 で Firebase Admin Authentication の初期化を再現し、報告で名前が挙げられている Guava AbstractFuture$UnsafeAtomicHelper 依存関係を調査します。警告を SDK の依存関係によって解消できるのか、それとも互換性に関する案内が必要なのかを判断します。対応完了の条件は、サポート対象のセットアップが文書化されるか、警告が表示されなくなることです。
索引モデルが issue の本文から書いたものです。
説明
[READ] Step 1: Are you in the right place?
- For issues or feature requests related to the code in this repository
file a Github issue.- If this is a feature request make sure the issue title starts with "FR:".
- For general technical questions, post a question on StackOverflow
with the firebase tag. - For general Firebase discussion, use the firebase-talk
google group. - For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
- Operating System version: macOS Sequoia 15.5
- Firebase SDK version: 9.5.0
- Library version: 9.5.0
- Firebase Product: Firebase Admin
- Java version: OpenJDK 24
[REQUIRED] Step 3: Describe the problem
Create a Java application using Firebase Admin Authentication
Use Java OpenJDK 24 as the runtime
Run the application
Observe deprecation warnings in the console output
What happened?
When running a Firebase Admin Authentication application with Java OpenJDK 24, the following deprecation warnings are displayed:
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
This appears to be related to the Firebase Admin SDK's dependency on Guava's AbstractFuture$UnsafeAtomicHelper class, which uses the deprecated sun.misc.Unsafe::objectFieldOffset method.
Expected behavior:
The Firebase Admin SDK should work without deprecation warnings on supported Java versions, or provide guidance on compatible Java versions.
Relevant Code:
java// Basic Firebase Admin initialization that triggers the warnings
FirebaseOptions options = FirebaseOptions.builder()
.setCredentials(GoogleCredentials.getApplicationDefault())
.build();
FirebaseApp.initializeApp(options);
// Any subsequent Firebase Admin operations will show the warnings
Additional context:
The warnings appear to be coming from the Guava library dependency used by Firebase Admin SDK
This may impact future compatibility when Java removes the deprecated sun.misc.Unsafe methods
The application functions correctly despite the warnings
- 主要言語
- Java
- スター
- 620
- フォーク
- 305
- 平均マージ
- 4日 9時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/firebase-admin-java のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
firebase/firebase-admin-java#1231 ·
-
api: core
firebase/firebase-admin-java#1198 · コメント 3 件 · 担当者 1 名 ·
-
api: remoteconfig
firebase/firebase-admin-java#1196 · コメント 1 件 · 担当者 2 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
firebase/firebase-admin-java#1192 · コメント 3 件 ·
-
needs-triage type: feature request
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
firebase/firebase-admin-java#1149 · コメント 1 件 ·
firebase/firebase-admin-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
FasterXML/jackson-databind#6229 ·