[Mono-bugs] [Bug 506882] Subclassing class with protected methods should allow access in IronPython

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 26 00:47:07 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=506882

User rkumpera at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=506882#c5


Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
      Info Provider|                            |dblank at cs.brynmawr.edu




--- Comment #5 from Rodrigo Kumpera <rkumpera at novell.com>  2009-05-25 22:47:05 MDT ---
Doug, the code you pointed out doesn't have any relation to the stack trace I
get when running under mono:

cannot access protected member SetStyle without a python subclass of Control 
    at System.Exception..ctor(System.String message)
   at Microsoft.Scripting.ArgumentTypeException..ctor(System.String message)
   at IronPython.Runtime.Operations.PythonOps.TypeError(System.String format,
System.Object[] args)
   at
IronPython.Runtime.Operations.PythonOps.TypeErrorForProtectedMember(System.Type
type, System.String name)
   at
IronPython.Runtime.Types.BuiltinFunction+<>c__DisplayClass8.<MakeBuiltinFunctionDelegate>b__1(System.Object[]
callArgs, Boolean ByRef shouldOptimize)
   at
IronPython.Runtime.Types.BuiltinFunction+BuiltinMethodCaller`3[[System.Object,
mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089]].Call2(Microsoft.Runtime.CompilerServices.CallSite
site, Microsoft.Scripting.Runtime.CodeContext context, System.Object func,
System.Object arg0, System.Object arg1)
   at
Microsoft.Scripting.UpdateDelegates.UpdateAndExecute4(Microsoft.Runtime.CompilerServices.CallSite
site, Microsoft.Scripting.Runtime.CodeContext arg0, System.Object arg1,
System.Object arg2, System.Object arg3)
   at
Microsoft.Scripting.UpdateDelegates.UpdateAndExecute4(Microsoft.Runtime.CompilerServices.CallSite
site, Microsoft.Scripting.Runtime.CodeContext arg0, System.Object arg1,
System.Object arg2, System.Object arg3)


Which comes from BuiltinFunction/MakeBuiltinFunctionDelegate. After trying to
decipher the whole mess of delegates, huge argument lists and method chaining I
gave up.

The whole DLR goes around in too many loops to let someone figure it out doing
a cursory read.

For debugging you can try MD 2.0 with the managed debugger, it might support
the generics heavy code in the DLR.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list