History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-893
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Nick Fortune
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

QuackInvoke intercepts calls to super() in class CTOR

Created: 09/Oct/07 09:42 AM   Updated: 09/Oct/07 02:35 PM
Component/s: Runtime (Boo.Lang)
Affects Version/s: 0.7.6
Fix Version/s: 0.8

Time Tracking:
Not Specified

Environment: Gentoo Linux


 Description  « Hide
1: define a class that implements IQuackFu

2: derive a subclass

3: call super in the subclass constructor

The runtaime fails with a casting exception. This seems to be because IQuackFu has redirected the call to QuackInvoke.

The following reproduces the problem:

import System
class base(IQuackFu):
def constructor(s as String):
pass
def QuackGet(s as String):
pass
def QuackSet(s as String,v as Object):
pass
def QuackInvoke(s as String,args as (Object)):
pass

class derv(base):
def constructor():
super("crunch")

derv()



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Rodrigo B. de Oliveira - 09/Oct/07 02:35 PM
Fixed in the repository.