Package stash iteration hides named subs from runtime traversal
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
The bug is in PerlOnJava's stash iteration, so start with the code that implements %{*{"::"}} and per-package stash hashes, checking whether named subroutine CODE slots are exposed. Reproduce with the four-line Perl script in the issue, expecting found=Bar1::bar. Done means that script prints the expected output and a focused regression test for enumerating a declared package sub passes on both JVM and interpreter backends.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Root cause
Aspect 1.04 discovers statically matched subs in Aspect::Pointcut::match_all by iterating package stashes (each %{*{"::"}} and then each package stash) and checking defined *ENTRY{CODE}. PerlOnJava's stash iteration does not expose named subroutine entries through that traversal: with Bar1::bar declared, Aspect::Pointcut::Call->new('Bar1::bar')->match_all prints Bar1::bar on system Perl but an empty list on PerlOnJava. As a result, Aspect installs no advice wrapper for the target; before, after, and around advice never run. The same behavior occurs on both JVM and interpreter backends.
Reproducer
use strict;
use Aspect;
package Bar1;
sub bar { 'value' }
package main;
my $p = Aspect::Pointcut::Call->new('Bar1::bar');
print 'found=', join(',', $p->match_all), "\n";
Expected: found=Bar1::bar
Actual on PerlOnJava: found=
Evidence
- Distribution: Aspect 1.04, CPAN run
20261008-181412-1954. - System Perl 5.42.2: full upstream suite passed, 28 files / 873 tests.
- PerlOnJava 5.44.1, JVM and interpreter: full run failed 22/28 files, 168/671 subtests; focused
t/31_feature_caller.tfailed the nine expected advice-count assertions on both backends. - Root cause confirmed directly by comparing
match_alloutput for the reproducer on system Perl and PerlOnJava. - Environment: macOS arm64, OpenJDK 24.0.2.
Fix package-stash iteration so named CODE entries are visible to Aspect's runtime stash traversal. Add focused regression coverage for enumerating a declared package sub through this traversal, then rerun the Aspect suite on both backends.
- Lenguaje dominante
- Perl
- Estrellas
- 64
- Forks
- 7
- Merge medio
- 5 h 25 min
- PR fusionados (30 d)
- 178
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fglock/PerlOnJava
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fglock/PerlOnJava#1651 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fglock/PerlOnJava#1579 ·
Los mantenedores suelen responder en 1 día
-
area:cpan-port area:unicode bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
fglock/PerlOnJava#1341 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
fglock/PerlOnJava#1696 ·
Los mantenedores suelen responder en 1 día
-
rename jar resource locatorAbiertodocumentation enhancement
Dificultad 3/5 Medio día Aptitud para principiantes 50/100
fglock/PerlOnJava#1694 ·
Los mantenedores suelen responder en 1 día
Todos los issues de fglock/PerlOnJava
Issues similares
-
bug help wanted
Dificultad 2/5 Menos de una hora Aptitud para principiantes 70/100
bioepic-data/bervo#145 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
inverse-inc/packetfence#9413 ·
Los mantenedores suelen responder en 1 día
-
Ubuntu .deb packages ship all files owned by uid/gid 1001 (CI user runner) instead of root:rootAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Help-Wanted Needs-Triage Package-Update
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
microsoft/winget-pkgs#448814 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
FOODTURE
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
openfoodfacts/openfoodfacts-server#14853 · 1 comentario ·
Los mantenedores suelen responder en 1 día