Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[MINOR] Java 25 - A restricted method in java.lang.System has been called

未关闭
#18 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java
领域
api

调研方向

首先将 Java 25 警告追踪到 io.questdb.client.std.Os 以及其在 questdb-client 1.2.0 中对 java.lang.System::load 的调用。使用 Debian trixie 上的 QuestDB 7.3.5 重现该警告,然后检查客户端的本机加载路径。完成的标准是:客户端在 Java 25 下不再发出受限方法警告,同时不破坏本机加载。

由索引模型根据 Issue 内容生成。

描述

bug
To reproduce

Starting with Java 25 I receive the following message once. There are no problems on using the code, however,

WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by io.questdb.client.std.Os in an unnamed module (file:/home/jboss/lib/main/org.questdb.questdb-client-1.2.0.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

There are reports on this for other libraries too, like here https://github.com/jline/jline3/issues/1067#issuecomment-2571591690

questdb-client is 1.2.0

QuestDB version:

7.3.5

OS, in case of Docker specify Docker and the Host OS:

debian trixie

File System, in case of Docker specify Host File System:

ext4

Full Name:

Marco Descher

Affiliation:

n/a

Have you followed Linux, MacOs kernel configuration steps to increase Maximum open files and Maximum virtual memory areas limit?
  • Yes, I have
Additional context

No response

主要语言
Java
星标
10
派生
6
平均合并
6 天 19 小时
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

questdb/java-questdb-client 的其他 Issue

查看 questdb/java-questdb-client 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。