YAML::Any::Dump omits blessed hash tag on JVM backend
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- data-engineering, devtools
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Perl
- Stelle
- 64
- Fork
- 7
- Merge medio
- 5h 7m
- PR unite (30g)
- 201
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fglock/PerlOnJava
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
fglock/PerlOnJava#1651 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fglock/PerlOnJava#1579 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cpan-port area:unicode bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
fglock/PerlOnJava#1341 ·
I maintainer di solito rispondono entro 1 giorno
-
area:parser bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 49/100
fglock/PerlOnJava#1763 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 68/100
fglock/PerlOnJava#1735 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fglock/PerlOnJava
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
bioconda/bioconda-recipes#70187 ·
I maintainer di solito rispondono entro 2 giorni
-
documentation Needs Triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 93/100
I maintainer di solito rispondono entro 1 giorno
-
Proposed Text EditsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
curl/everything-curl#658 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
PDLPorters/pdl#561 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
objectionary/eolang.sty#197 ·
I maintainer di solito rispondono entro 1 giorno