YAML::Any::Dump omits blessed hash tag on JVM backend
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
- 22/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- data-engineering, devtools
Hướng nghiên cứu
Start with the failing assertion in t/01.simple.t for UNIVERSAL::to_yaml, which calls YAML::Any::Dump on a blessed hash. Trace the JVM path through the selected YAML dumper and its PerlOnJava compatibility layer to find where the blessed class tag is dropped. Done when the JVM output includes the perl/hash:Foo tag and a focused regression test for YAML::Any::Dump blessed-hash serialization passes on both backends.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
UNIVERSAL::to_yaml 0.11 fails its blessed-hash serialization test on the PerlOnJava JVM backend. Its to_yaml method delegates directly to YAML::Any::Dump, and the result omits the blessed class marker expected by the upstream test.
Evidence
-
Distribution:
UNIVERSAL-to_yaml0.11 -
CPAN tester run:
20261008-181412-1954 -
Failing test:
t/01.simple.t, assertion at line 12 (1 of 2 distribution tests failed) -
Test object:
bless { This => "this value", That => "That Value" }, "Foo" -
Expected output to match:
perl/hash:Foo -
PerlOnJava JVM actual output:
--- This: this value That: That Value -
System Perl 5.42.2: full target suite passes (2 files, 2 tests); YAML 1.321 and its test prerequisites also passed in the archived oracle run.
-
PerlOnJava JVM: reproduces the assertion failure.
-
PerlOnJava interpreter: unclassified; the focused reproducer stops with
Unsupported local operand: OperatorNodeinYAML/Any.pmbefore the assertion. -
PerlOnJava checkout used for the focused reproduction:
b715a4db7; OpenJDK 24.0.2; macOS arm64. -
The distribution is pure Perl and has no XS/native prerequisites.
Investigation
The CPAN distribution method is only:
sub UNIVERSAL::to_yaml {
Dump( $_[0] )
}
This points to the selected YAML dumper or its PerlOnJava compatibility layer as the likely source of the missing blessed-object tag. That component-level cause still needs to be isolated.
Acceptance criteria
- Preserve the
Fooblessed-hash tag expected by upstreamt/01.simple.ton the JVM backend. - Add focused project-owned regression coverage for blessed-hash YAML serialization through the
YAML::Any::Dumppath. - Classify and address the interpreter parse/operand error separately if it remains reproducible after the JVM path is fixed.
- Validate the focused behavior under system Perl and both PerlOnJava backends.
- Ngôn ngữ chính
- Perl
- Star
- 64
- Fork
- 7
- Merge trung bình
- 5 giờ 7 phút
- Pull request đã merge (30 ngày)
- 201
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fglock/PerlOnJava
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
fglock/PerlOnJava#1651 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#1579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cpan-port area:unicode bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
fglock/PerlOnJava#1341 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:parser bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 49/100
fglock/PerlOnJava#1763 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 68/100
fglock/PerlOnJava#1735 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fglock/PerlOnJava
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
bioconda/bioconda-recipes#70187 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
documentation Needs Triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 93/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Proposed Text EditsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
curl/everything-curl#658 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
PDLPorters/pdl#561 ·