[Mono-list] new IronPython changes reveal Mono bug in accessing protected methods?
doug.blank at gmail.com
Mon May 25 09:20:35 EDT 2009
On 5/25/09, Rodrigo Kumpera <kumpera at gmail.com> wrote:
> Please fill a bug report on this.
Ok, will do. It may also be the same as:
but I'm just guessing.
> On Sun, May 24, 2009 at 4:49 PM, Doug Blank <doug.blank at gmail.com> wrote:
>> I'm testing the latest stable build (0.91) of the DLR (Dynamic Language
>> Runtime) from:
>> with that version of IronPython. Trying this Python code with mono
>> import clr
>> from System.Windows.Forms import *
>> class MyForm(Form): pass
>> f = MyForm()
>> f.SetStyle(ControlStyles.UserPaint, True)
>> Traceback (most recent call last):
>> TypeError: cannot access protected member SetStyle without a python
>> subclass of Control
>> This was also releated to an error that Microsoft had earlier that
>> protected methods, and now requires the MyForm wrapper, see:
>> I'm using:
>> $ mono --version
>> Mono JIT compiler version 134631 (tarball Sat May 23 10:52:56 UTC 2009)
>> Copyright (C) 2002-2008 Novell, Inc and Contributors.
>> TLS: __thread
>> GC: Included Boehm (with typed GC and Parallel Mark)
>> SIGSEGV: altstack
>> Notifications: epoll
>> Architecture: x86
>> Disabled: none
>> I've also tried the latest version of IronPython independent of the DLR,
>> and both versions of ipy.exe under .NET on Windows work fine, so this
>> like a Mono bug, although strange that it worked before MS fixed
>> so that you had to subclass Form to access the protected SetStyle. That
>> have uncovered a Mono bug, don't you think?
>> Any feedback appreciated,
>> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list