YAML::Any::Dump omits blessed hash tag on JVM backend
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 22/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- data-engineering, devtools
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Perl
- Sterne
- 64
- Forks
- 7
- Ø Merge
- 5 Std. 7 Min.
- Gemergte PRs (30 T.)
- 201
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus fglock/PerlOnJava
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
fglock/PerlOnJava#1651 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
fglock/PerlOnJava#1579 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:cpan-port area:unicode bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
fglock/PerlOnJava#1341 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:parser bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 49/100
fglock/PerlOnJava#1763 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 68/100
fglock/PerlOnJava#1735 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in fglock/PerlOnJava
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
bioconda/bioconda-recipes#70187 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
documentation Needs Triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 93/100
Maintainer antworten meist innerhalb von 1 Tag
-
Proposed Text EditsOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
curl/everything-curl#658 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
PDLPorters/pdl#561 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
objectionary/eolang.sty#197 ·
Maintainer antworten meist innerhalb von 1 Tag