Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#1,466 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
perl
Lĩnh vực
compilers

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Perl
Star
64
Fork
7
Merge trung bình
5 giờ 11 phút
Pull request đã merge (30 ngày)
186

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fglock/PerlOnJava

Tất cả issue của fglock/PerlOnJava

Issue tương tự

Thêm issue về Perl

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.