Deprecation warnings with Java OpenJDK 24 - sun.misc.Unsafe usage in Firebase Admin SDK
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- java
- Bereich
- authentication, backend
Rechercherichtung
Beginne damit, die Initialisierung von Firebase Admin Authentication mit OpenJDK 24 zu reproduzieren, und untersuche die im Bericht genannte Abhängigkeit Guava AbstractFuture$UnsafeAtomicHelper. Ermittle, ob sich die Warnung über die SDK-Abhängigkeit beheben lässt oder ob Kompatibilitätshinweise erforderlich sind; als erledigt gilt die Aufgabe, wenn das unterstützte Setup dokumentiert ist oder die Warnungen nicht mehr auftreten.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
[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
- Vorherrschende Sprache
- Java
- Sterne
- 620
- Forks
- 305
- Ø Merge
- 4 T. 9 Std.
- Gemergte PRs (30 T.)
- 4
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus firebase/firebase-admin-java
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
firebase/firebase-admin-java#1231 ·
-
api: core
firebase/firebase-admin-java#1198 · 3 Kommentare · 1 zugewiesene Person ·
-
api: remoteconfig
firebase/firebase-admin-java#1196 · 1 Kommentar · 2 zugewiesene Personen ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
firebase/firebase-admin-java#1192 · 3 Kommentare ·
-
needs-triage type: feature request
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
firebase/firebase-admin-java#1149 · 1 Kommentar ·
Alle Issues in firebase/firebase-admin-java
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
objectionary/jeo-maven-plugin#1811 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
hiero-ledger/hiero-block-node#3693 ·
-
area/dependencies kind/cve severity/critical source/scan-dependencies status/triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
-
proposal
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
beemdevelopment/Aegis#1840 ·