Parse postfix unless after eval heredoc with defined sub check
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the reduced Perl reproducer and the parser handling its eval heredoc and postfix unless form, then add project-owned regression coverage for both PerlOnJava backends. Run t/00-compile.t for Pod::Weaver::Plugin::WordListC; done means the reproducer parses and runs on the JVM and interpreter backends and the compile test passes.
由索引模型根据 Issue 内容生成。
描述
Summary
PerlOnJava rejects an eval heredoc whose statement has a postfix unless condition checking whether a subroutine is defined. This prevents Params::SomeUtil from loading and causes CPAN distributions such as Pod-Weaver-Plugin-WordListC to fail their compile test.
Reproducer
eval <<'END_PERL' unless defined &foo;
sub foo { 1 }
END_PERL
System Perl 5.42.2 accepts this with syntax OK. Both PerlOnJava backends report a syntax error. The real dependency failure points at the condition near unless defined & in Params::SomeUtil 1.12.
Regression evidence
CPAN run 20261002-132816-78055 records Pod::Weaver::Plugin::WordListC 0.001 as a regression: t/00-compile.t fails while loading Params::SomeUtil, with 1 of 1 assertions failed in that test and 1 of 4 test programs failing overall. The regression record lists a prior pass on 2026-09-12 at commit 141cdae65.
The system-Perl oracle log did not reach the target distribution's test run, so the full upstream suite result is unverified. The reduced Perl syntax construct passes under system Perl and fails reproducibly on both PerlOnJava backends.
Observed on macOS arm64 with Java 24.0.2, PerlOnJava commit a0b6a6256 (reported as Perl 5.44.1).
Ecosystem impact
Params::SomeUtil contains XS code. A targeted MetaCPAN lookup found 6 unique released runtime dependants, all 6 recent: Dist-Zilla, Pod-Weaver, Config-MVP, Sub-Exporter, Data-OptList, and Alt-Params-Util-PLICEASE.
Acceptance criteria
- The reproducer parses and runs on the JVM and interpreter backends.
- Add project-owned regression coverage for this syntax form.
- The
Pod::Weaver::Plugin::WordListCcompile test passes with the same dependency load order.
- 主要语言
- Perl
- 星标
- 64
- 派生
- 7
- 平均合并
- 4 小时 56 分钟
- 30 天内合并 PR
- 181
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fglock/PerlOnJava 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
fglock/PerlOnJava#1651 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
fglock/PerlOnJava#1579 ·
维护者通常 1 天内回复
-
area:cpan-port area:unicode bug
难度 2/5 1-3 小时 新手友好度 88/100
fglock/PerlOnJava#1341 ·
维护者通常 1 天内回复
-
难度 4/5 1-2 天 新手友好度 54/100
fglock/PerlOnJava#1671 ·
维护者通常 1 天内回复
-
area:cpan-port enhancement
难度 5/5 一周以上 新手友好度 38/100
fglock/PerlOnJava#1670 ·
维护者通常 1 天内回复
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
gugod/App-perlbrew#879 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 76/100
RotherOSS/otobo#6205 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
yuki-kimoto/SPVM-IO#30 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
RotherOSS/servicecatalog#28 ·