Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Parser rejects postfix method call on function-call result in HTML::Query dependency

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

Línea de trabajo

Start by reproducing the failure with the class($class->FINDBIN)->load expression while loading Badger::Filesystem, then trace the parser path that rejects the postfix method call. Add focused project-owned regression coverage for a postfix call on a function-call result, and run the listed HTML::Query tests to confirm the complete upstream suite passes.

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

Descripción

area:cpan-port area:parser bug

Summary

HTML-Query-0.09 fails under PerlOnJava because the parser rejects a valid postfix method call on the result of a function call in its Badger dependency.

Reproduction

Badger::Filesystem contains this valid Perl expression:

class($class->FINDBIN)->load;

PerlOnJava reports:

Unsupported operator: -> at Badger/Filesystem.pm line 76, near ")->load"

The failure occurs while loading Badger::Filesystem, which is used by all of the HTML::Query tests.

Evidence

  • Distribution: HTML-Query-0.09
  • Dependency: Badger-0.16
  • CPAN random tester run: 20260921-102914-97159
  • Failing tests: t/acidtest.t, t/combinator.t, t/construct.t, t/duplicate.t, t/element.t, t/iterative.t, t/multioperand.t, t/pseudoclasses.t, t/query.t, t/specificity.t, and t/universal.t
  • System Perl: PASS, 11 test programs and 342 tests
  • PerlOnJava: FAIL, all 11 test programs terminate during compilation/loading
  • The distributions contain no XS or native code.

Expected behavior

PerlOnJava should accept postfix method calls on arbitrary expression results, including a parenthesized function call such as class(...)->load, with the same behavior as standard Perl.

Acceptance criteria

  • The expression class($class->FINDBIN)->load parses and executes correctly.
  • HTML-Query-0.09 passes its complete upstream test suite.
  • Add focused project-owned regression coverage for a postfix method call on a function-call result.

Related issue

Issue #1430 concerns a different parser problem involving an imported subroutine named break being parsed as an operator. It is related parser work but does not cover this postfix method-call syntax failure.

Lenguaje dominante
Perl
Estrellas
64
Forks
7
Merge medio
4 h 27 min
PR fusionados (30 d)
178

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.