Title: Deprecation warnings with Java OpenJDK 24 - sun.misc.Unsafe usage in Firebase Admin SDK · Issue #1100 · firebase/firebase-admin-java · GitHub
Open Graph Title: Deprecation warnings with Java OpenJDK 24 - sun.misc.Unsafe usage in Firebase Admin SDK · Issue #1100 · firebase/firebase-admin-java
X Title: Deprecation warnings with Java OpenJDK 24 - sun.misc.Unsafe usage in Firebase Admin SDK · Issue #1100 · firebase/firebase-admin-java
Description: [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 questio...
Open Graph Description: [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 w...
X Description: [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 w...
Opengraph URL: https://github.com/firebase/firebase-admin-java/issues/1100
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecation warnings with Java OpenJDK 24 - sun.misc.Unsafe usage in Firebase Admin SDK","articleBody":"### [READ] Step 1: Are you in the right place?\n\n * For issues or feature requests related to __the code in this repository__\n file a Github issue.\n * If this is a __feature request__ make sure the issue title starts with \"FR:\".\n * For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/)\n with the firebase tag.\n * For general Firebase discussion, use the [firebase-talk](https://groups.google.com/forum/#!forum/firebase-talk)\n google group.\n * For help troubleshooting your application that does not fall under one\n of the above categories, reach out to the personalized\n [Firebase support channel](https://firebase.google.com/support/).\n\n### [REQUIRED] Step 2: Describe your environment\n\n * Operating System version: macOS Sequoia 15.5\n * Firebase SDK version: 9.5.0\n * Library version: 9.5.0\n * Firebase Product: Firebase Admin\n * Java version: OpenJDK 24\n\n### [REQUIRED] Step 3: Describe the problem\n\n\nCreate a Java application using Firebase Admin Authentication\nUse Java OpenJDK 24 as the runtime\nRun the application\nObserve deprecation warnings in the console output\n\nWhat happened?\nWhen running a Firebase Admin Authentication application with Java OpenJDK 24, the following deprecation warnings are displayed:\nWARNING: A terminally deprecated method in sun.misc.Unsafe has been called\nWARNING: sun.misc.Unsafe::objectFieldOffset has been called\nWARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper\nWARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release\nThis 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.\nExpected behavior:\nThe Firebase Admin SDK should work without deprecation warnings on supported Java versions, or provide guidance on compatible Java versions.\nRelevant Code:\njava// Basic Firebase Admin initialization that triggers the warnings\nFirebaseOptions options = FirebaseOptions.builder()\n .setCredentials(GoogleCredentials.getApplicationDefault())\n .build();\n\nFirebaseApp.initializeApp(options);\n\n// Any subsequent Firebase Admin operations will show the warnings\nAdditional context:\n\nThe warnings appear to be coming from the Guava library dependency used by Firebase Admin SDK\nThis may impact future compatibility when Java removes the deprecated sun.misc.Unsafe methods\nThe application functions correctly despite the warnings","author":{"url":"https://github.com/miltondavila","@type":"Person","name":"miltondavila"},"datePublished":"2025-06-01T10:28:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1100/firebase-admin-java/issues/1100"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7eb730f9-a566-08c7-db81-a80572037047 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B98:1EDB9B:E3C16:12BB5E:698E6073 |
| html-safe-nonce | 81af6d2938989659a952981243c053e665ff39d83d9a380df444e7102a39624a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjk4OjFFREI5QjpFM0MxNjoxMkJCNUU6Njk4RTYwNzMiLCJ2aXNpdG9yX2lkIjoiNTU5Mjc2MDk1MjY2OTc1NzU1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1669ec507ae02554a97754731ded3ac6f01357596c5f0441c6754c0cf31a02b6 |
| hovercard-subject-tag | issue:3107029079 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/firebase-admin-java/1100/issue_layout |
| twitter:image | https://opengraph.githubassets.com/199f06bae86b5696670203300ebe049d30519caf09e029c00101f49cfc38d92a/firebase/firebase-admin-java/issues/1100 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/199f06bae86b5696670203300ebe049d30519caf09e029c00101f49cfc38d92a/firebase/firebase-admin-java/issues/1100 |
| og:image:alt | [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 w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | miltondavila |
| hostname | github.com |
| expected-hostname | github.com |
| None | 666e30cc1de8ebdf458084bf731e95deba4f074a5008f91b50803aa9a71e3725 |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/firebase-admin-java git https://github.com/firebase/firebase-admin-java.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 84979119 |
| octolytics-dimension-repository_nwo | firebase/firebase-admin-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84979119 |
| octolytics-dimension-repository_network_root_nwo | firebase/firebase-admin-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f2d67bd549813f8aceb31f205ebdb434e9d46d38 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width