Class::Throwable interpreter reports source line one too late

Abierto
#2,042 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
perl
Área
compilers

Línea de trabajo

Start with assertion 29 in the Class::Throwable 0.13 interpreter test and compare its source-line result under system Perl and the PerlOnJava interpreter. Trace which eval/caller frame accounts for the 107-versus-108 difference, using the context in #1548 and #1945. Add a project-owned regression and confirm the focused test on both PerlOnJava backends.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary

The Class::Throwable 0.13 interpreter test has one remaining source-line mismatch in assertion 29: PerlOnJava reports line 108, while system Perl expects line 107.

Evidence

  • Reported during the work tracked by #1548.
  • System Perl focused regression passes.
  • The JVM Class::Throwable 0.13 run passed 30/30.
  • The interpreter run still differed at assertion 29 (actual 108, expected 107).
  • PR #1945 separately fixed eval-frame caller()[4] behavior; this one-line source-location discrepancy remained afterward.
  • The caller metadata work in #1548 was merged in #2036, but this mismatch is a separate follow-up.

Expected behavior

The interpreter backend should report the same source line as standard Perl for the assertion 29 stack/source-location case (107 rather than 108).

Next steps

Reproduce the assertion under system Perl and PerlOnJava interpreter, identify which eval/caller frame contributes the off-by-one line, and add a project-owned regression validated on standard Perl before changing runtime behavior. Confirm the focused test on both PerlOnJava backends after the fix.

Related: #1548 (closed after the broader caller metadata fix in #2036); #1945 (eval-frame caller()[4] fix).

Lenguaje dominante
Perl
Estrellas
67
Forks
8
Merge medio
5 h 12 min
PR fusionados (30 d)
131

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de fglock/PerlOnJava

Todos los issues de fglock/PerlOnJava

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.