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
- 星號
- 65
- 分支
- 8
- 平均合併
- 6 小時 33 分鐘
- 30 天內合併 PR
- 178
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
fglock/PerlOnJava 的其他 Issue
-
area:runtime documentation enhancement
難度 2/5 1-3 小時 新手友好度 72/100
fglock/PerlOnJava#1579 ·
維護者通常 1 天內回覆
-
Preserve scalar slots assigned through localized glob aliases可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉area:runtime bug
難度 4/5 3-5 天 新手友好度 35/100
fglock/PerlOnJava#1939 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 35/100
fglock/PerlOnJava#1885 ·
維護者通常 1 天內回覆
-
area:performance enhancement
難度 5/5 一週以上 新手友好度 20/100
fglock/PerlOnJava#1863 · 3 則留言 ·
維護者通常 1 天內回覆
-
area:memory area:performance area:runtime bug
難度 4/5 3-5 天 新手友好度 52/100
fglock/PerlOnJava#1860 · 3 則留言 ·
維護者通常 1 天內回覆
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
-
easy first-contributor first-contributors good first issue help wanted perl shell up-for-grabs
難度 1/5 1 小時以內 新手友好度 88/100
fork-commit-merge/fork-commit-merge#8461 ·
維護者通常 1 天內回覆
-
PostgreSQL::Version rejects documented full psql version output可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
1.severity: security
難度 2/5 1-3 小時 新手友好度 64/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
gugod/App-perlbrew#880 · 2 則留言 ·