[perl #41557] [BUG] addparent established heirarchies don't work with .Super

0 views
Skip to first unread message

Sam Vilain

unread,
Feb 20, 2007, 3:03:59 PM2/20/07
to bugs-bi...@rt.perl.org
# New Ticket Created by Sam Vilain
# Please include the string: [perl #41557]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41557 >


Hi there,

There seem to be some bugs with inheritance, possibly in the .Super PMC.

When you call

$P0 = new .Super, self

If "self" was;

- a .Super made by a superclass call in the previous sub-class
- a superclass that was setup using "addparent" rather than subclass

Then you get a "object has no parent" exception

The tests added in r17031 demonstrate the issue (in t/pmc/object-meths.t).

Sam.

Reply all
Reply to author
Forward
0 new messages