From: SourceForge.net <no...@so...> - 2011-03-09 07:45:51
|
Bugs item #3202716, was opened at 2011-03-08 08:50 Message generated for change (Comment added) made by jfaucher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=3202716&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interpreter Group: v4.2.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: jfaucher (jfaucher) Assigned to: Nobody/Anonymous (nobody) Summary: crash if subclassing .Supplier without calling init:super Initial Comment: I get a crash when running the code below (WinXP, trunk). The problem comes from this->values which is NULL. s = .mySupplier~new say s~available ::class mySupplier subclass Supplier ::method init -- my error : I don't forward to super ---------------------------------------------------------------------- >Comment By: jfaucher (jfaucher) Date: 2011-03-09 08:45 Message: not really a bug, in this case, feel free to reject. I attached a file which detects similar crashes with other classes, if you are interested. While looking at them, I found the following test case which also crashes the interpreter (winXP, trunk). Here too, It's my responsability to pass the right arguments, so I don't open a defect. myObject = .Object~new myObject~sendwith ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2011-03-08 12:48 Message: I don't really consider this a bug. When you are subclassing a class, it is your responsibility to ensure that the class is fully initialized by properly constructing the init methods. There's only so much hand-holding that the interpreter can be responsible for. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=3202716&group_id=119701 |