Parse postfix unless after eval heredoc with defined sub check
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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時間 27分
- マージ済み PR(30日)
- 178
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日以内に返信
-
area:backend area:cpan-port area:parser bug
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
fglock/PerlOnJava#1659 ·
メンテナーはふだん 1 日以内に返信
-
Alien::Build archive extraction fails for Ninja and Meson対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
fglock/PerlOnJava#1657 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
fglock/PerlOnJava の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
convos-chat/convos#977 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
inverse-inc/packetfence#9387 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
linux-test-project/lcov#552 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
szTheory/exifcleaner#383 ·
メンテナーはふだん 1 日以内に返信
-
1.severity: security
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
NixOS/nixpkgs#569828 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信