Ticket #1106 (closed bug: fixed)
Cannot presently dump Class pmcs
| Reported by: | Austin_Hastings | Owned by: | whiteknight |
|---|---|---|---|
| Priority: | minor | Milestone: | 3.0 |
| Component: | library | Version: | 1.6.0 |
| Severity: | medium | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: | all |
Description
Invoking _dumper (the front end to Data::Dumper) on a RPA returned from the .parents() method of a P6object class produces an exception:
"VAR1" => ResizablePMCArray (size:2) [
Class {get_iter() not implemented in class 'Class'
current instr.: 'parrot;Data::Dumper::Default;genericHash' pc 125 (runtime/parrot/library/Data/Dumper/Default.pir:127)
called from Sub 'parrot;Data::Dumper::Base;dump' pc 382 (runtime/parrot/library/Data/Dumper/Base.pir:252)
called from Sub 'parrot;Data::Dumper::Default;genericArray' pc 421 (runtime/parrot/library/Data/Dumper/Default.pir:323)
called from Sub 'parrot;Data::Dumper::Base;dump' pc 382 (runtime/parrot/library/Data/Dumper/Base.pir:252)
called from Sub 'parrot;Data::Dumper::Default;dumpWithName' pc 40 (runtime/parrot/library/Data/Dumper/Default.pir:57)
called from Sub 'parrot;Data::Dumper;dumper' pc 69 (runtime/parrot/library/Data/Dumper.pir:44)
called from Sub '_dumper' pc 66 (runtime/parrot/library/dumper.pir:93)
called from Sub 'parrot;Grand2;main' pc 24958 (src/gen_classtest.pir:10552)
called from Sub 'parrot;Grand2;_ONLOAD' pc 24771 (src/gen_classtest.pir:10491)
called from Sub 'parrot;Grand2;_block99' pc 24673 (src/gen_classtest.pir:10459)
make: *** [classtest] Error 1
I don't know if dumper was using genericHash because the class pmc identified itself as a hash, or if because Hash is the eventual root of the class hierarchy. Regardless, crash-and-exit seems inappropriate behavior.
Change History
Note: See
TracTickets for help on using
tickets.
