Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Warning with Java 25

未關閉
#322 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
java
領域
devtools

研究方向

使用 Java 25 執行 agent 以重現該警告,並檢查 shaded appmap-agent-1.30.0.jar,尤其是警告中指出的 Byte Buddy ClassInjector$UsingUnsafe$Dispatcher$CreationAction 路徑。確認哪項變更可以消除或處理關於已棄用的 sun.misc.Unsafe::objectFieldOffset 的警告,並在 Java 25 下驗證結果。

由索引模型根據 Issue 內容生成。

描述

Running the agent with Java 25 produces this warning:

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.appland.shade.net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction (file:/home/jansorg/.appmap/lib/java/appmap-agent-1.30.0.jar)
WARNING: Please consider reporting this to the maintainers of class com.appland.shade.net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
主要語言
Java
星號
88
分支
17
平均合併
2 天 2 小時
30 天內合併 PR
1

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

getappmap/appmap-java 的其他 Issue

查看 getappmap/appmap-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。