Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

JVM 25 warning - remove usage of sun.misc.Unsafe

Đang mở
#9,681 6 bình luận 8 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện cảnh báo khởi động Java 25 với dd-trace-java 1.53.0 và truy vết lệnh gọi net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction được báo cáo trong datadog-agent.jar. So sánh issue OpenTelemetry liên quan và xác định nơi agent hoặc dependency gọi sun.misc.Unsafe; công việc được xem là hoàn tất khi quá trình khởi động không tạo ra cảnh báo như vậy trên Java 25.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

type: bug report
Tracer Version(s)

1.53.0

Java Version(s)

25.0.0

JVM Vendor

Amazon Corretto

Bug Report

We are starting to use Java 25 with a bunch of projects and saw this warning block at the top of the output:

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction (file:/usr/local/datadog-agent.jar)
WARNING: Please consider reporting this to the maintainers of class net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release

I think this is similar to https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/13375, would be nice if we could get rid of this warning and make the agent future proof. Maybe this is even coming from OpenTelemetry directly, feel free to close this issue then.

Expected Behavior

No warning during startup

Reproduction Code

No response

Ngôn ngữ chính
Java
Star
737
Fork
361
Merge trung bình
3 ngày 13 giờ
Pull request đã merge (30 ngày)
181

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DataDog/dd-trace-java

Tất cả issue của DataDog/dd-trace-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.