Support Java module system
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 12/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- build-system
调研方向
The payload names no source files. Start by finding where Warbler assembles the fat jar with its nested JRuby, JRuby stdlib and gem jars, and how those jars are loaded at runtime through custom classloaders. The open question is how a module-compatible (JPMS) layout can carry nested jars, and that needs a design decision before any code. Done would be an agreed design plus a build that runs without the restricted-method and Unsafe warnings quoted in the issue.
由索引模型根据 Issue 内容生成。
描述
Warbler currently generates a single fat jar with nested jars for JRuby, JRuby's stdlib, and any other libraries needed. Those jars then get unpacked or loaded into custom classloaders at runtime.
This system will definitely need tweaks to support JPMS, the Java module system, and I do not know how to handle nested jars with a module-compatible package. We'll need to figure that out.
Modularizing will also get us closer to eliminating JVM warnings and errors related to native access and reflective access to JDK classes needed by JRuby proper, such as the following two warnings from JDK 25:
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:/var/folders/5n/y5_kd6x94rndnyjh4519bp2w0000gn/T/jruby9794538498169631325extract/jruby-core-10.0.2.0-complete.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
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::putLong has been called by com.kenai.jffi.UnsafeMemoryIO$UnsafeMemoryIO64 (file:/var/folders/5n/y5_kd6x94rndnyjh4519bp2w0000gn/T/jruby9794538498169631325extract/jruby-core-10.0.2.0-complete.jar)
WARNING: Please consider reporting this to the maintainers of class com.kenai.jffi.UnsafeMemoryIO$UnsafeMemoryIO64
WARNING: sun.misc.Unsafe::putLong will be removed in a future release
Without modules, there's no way for us to configure the generated jar with necessary permissions.
- 主要语言
- Ruby
- 星标
- 901
- 派生
- 206
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jruby/warbler 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 一周以上 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 22/100
-
难度 5/5 一周以上 新手友好度 12/100
-
难度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
glossarist/glossarist-ruby#247 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
voxpupuli/puppet-corosync#589 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
theforeman/puppet-foreman_scap_client#93 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
simp/pupmod-simp-simp#406 ·