Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Parse postfix unless after eval heredoc with defined sub check

Aperta
#1,625 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, perl
Ambito
compilers

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:parser bug

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::WordListC compile test passes with the same dependency load order.
Lingua principale
Perl
Stelle
64
Fork
7
Merge medio
4h 29m
PR unite (30g)
176

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fglock/PerlOnJava

Tutte le issue di fglock/PerlOnJava

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.