Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Strong encapsulation warning in Java 25.

オープン
#9,937 コメント 2 件 リアクション 5 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java

調査の方向性

dd-agent の起動パスと、レポートで説明されている com.kenai.jffi.internal.StubLoader の警告から始めます。JFFI 依存関係が --enable-native-access なしで Java 25 の警告を回避できるかどうかを確認します。Java 25 が警告なしで実行され、tracer の機能が損なわれない状態になれば作業は完了です。

索引モデルが issue の本文から書いたものです。

説明

type: bug report
Tracer Version(s)

1.54.0

Java Version(s)

25.0.1+8.0.LTS

JVM Vendor

Eclipse Adoptium / Temurin

Bug Report

When running dd-agent with Java 25 we get the following warning:

WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.kenai.jffi.internal.StubLoader in an unnamed module (file:/usr/local/datadog-agent.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled

From my understanding this won't affect the functionality of the tracer agent right now. But in future versions of Java this might be blocked instead of a warning.

Addiotionally for us using --enable-native-access isn't an option as it might weaken security.

I don't know if migrating from JFFI to Javas Panama would be a viable option?

Expected Behavior

Running dd-agent in Java 25 without the warning.

Reproduction Code

No response

主要言語
Java
スター
737
フォーク
361
平均マージ
3日 20時間
マージ済み PR(30日)
173

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DataDog/dd-trace-java のほかの issue

DataDog/dd-trace-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。