Parser rejects postfix method call on function-call result in HTML::Query dependency
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
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
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, andt/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)->loadparses and executes correctly. HTML-Query-0.09passes 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
- 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
-
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
-
area:backend area:cpan-port area:parser bug
fglock/PerlOnJava#1659 ·
Los mantenedores suelen responder en 1 día
-
Alien::Build archive extraction fails for Ninja and MesonPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
fglock/PerlOnJava#1657 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
fglock/PerlOnJava#1655 ·
Los mantenedores suelen responder en 1 día
Todos los issues de fglock/PerlOnJava
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
convos-chat/convos#977 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
inverse-inc/packetfence#9387 ·
Los mantenedores suelen responder en 1 día
-
`-static-libstdc++` breaks buildAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
linux-test-project/lcov#552 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
szTheory/exifcleaner#383 ·
Los mantenedores suelen responder en 1 día
-
thrift: security issues < 0.25.0Abierto1.severity: security
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
NixOS/nixpkgs#569828 · 1 reacción ·
Los mantenedores suelen responder en 1 día