Port autovivification pragma to PerlOnJava
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reading the autovivification 0.18 import/unimport documentation and the PerlOnJava compiler/runtime paths that handle lexical pragmas on both backends. Then review issues #1958 and #1980 for related core behavior. Done means both backends load the pragma without XS errors, focused tests cover its categories and nested scopes, and Data-Session 1.18's upstream tests pass.
由索引模型根据 Issue 内容生成。
描述
Summary
Port the CPAN autovivification pragma to PerlOnJava so modules that declare use autovivification or no autovivification can load and receive the pragma's documented lexical behavior without relying on XS.
Evidence
The PerlOnJava CPAN run 20261117-153921-75160 tested Data-Session 1.18. Its system-Perl oracle passed all 3 test programs (52 tests). The PerlOnJava run failed all 3 programs before any subtests ran because the dependency autovivification 0.18 calls XSLoader::load; PerlOnJava reported that no Java XS implementation is available. Data::Session and its tests use the pragma lexically, including no autovivification in library files.
autovivification contains XS/C code and cannot currently be loaded by PerlOnJava. A targeted released dependency lookup found 39 unique distributions with a required runtime dependency, 20 of them released in the last five years. Representative dependants include JSON-Schema-Modern, App-Netdisco, OpenAPI-Modern, Spreadsheet-Edit, Test-JSON-Schema-Acceptance, and Mojolicious-Plugin-OpenAPI-Modern.
This request is for a PerlOnJava implementation of the pragma's behavior, not support for compiling arbitrary XS modules.
Porting scope
Implement a Java-backed replacement compatible with autovivification 0.18's documented import/unimport interface and lexical scope. Cover the categories fetch, exists, delete, and store, plus warn and strict modes and their category arguments. Preserve the module's documented default categories and behavior when nested scopes enable or disable the pragma. Determine the right compiler/runtime hook for this lexical behavior and make it work consistently on both JVM and interpreter backends.
The implementation should allow the upstream pure-Perl module entry point to load without attempting to load the XS object when PerlOnJava provides the implementation. Keep standard Perl behavior unchanged.
Acceptance criteria
use autovivificationandno autovivificationload on both PerlOnJava backends without XS load errors.- Focused tests cover lexical enable/disable scope and each documented behavior category, including warning/strict modes.
- The tests pass under system Perl and both PerlOnJava backends.
- Data-Session 1.18's upstream tests pass under PerlOnJava with the pragma available.
- Add permanent project-owned regression coverage for the implemented pragma behavior.
Related issues
Issues #1958 and #1980 address specific core autovivification behaviors. They do not provide the lexical pragma or its category controls.
- 主要语言
- Perl
- 星标
- 67
- 派生
- 8
- 平均合并
- 5 小时 12 分钟
- 30 天内合并 PR
- 131
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fglock/PerlOnJava 的其他 Issue
-
area:cpan-port bug
难度 2/5 1-3 小时 新手友好度 70/100
fglock/PerlOnJava#2153 ·
维护者通常 1 天内回复
-
area:cpan-port area:parser bug
难度 2/5 1-3 小时 新手友好度 68/100
fglock/PerlOnJava#2137 ·
维护者通常 1 天内回复
-
area:backend area:cpan-port area:runtime bug
难度 2/5 1-3 小时 新手友好度 76/100
fglock/PerlOnJava#2071 ·
维护者通常 1 天内回复
-
area:runtime documentation enhancement
难度 2/5 1-3 小时 新手友好度 72/100
fglock/PerlOnJava#1579 ·
维护者通常 1 天内回复
-
area:cpan-port bug
难度 3/5 1-2 天 新手友好度 62/100
fglock/PerlOnJava#2157 ·
维护者通常 1 天内回复
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
Dev-output directory preparation accepts file-valued lib/include paths and fails on dangling links未关闭team-cli
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
-
难度 1/5 1 小时以内 新手友好度 93/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
inverse-inc/packetfence#9728 ·
维护者通常 1 天内回复
-
fix(char-create): show the real reason a character is refused可能已有人在做 @baphomello 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复