[Mono-dev] Bug 10784

2016-01-04 Thread Jamie Venning
Good Morning.

Bug 10784 (
https://bugzilla.xamarin.com/show_bug.cgi?format=multiple&id=10784) is a
major blocker for me, and a big obstacle for larger applications moving
from .NET to Mono. Because I need this fixed, I am prepared to fix it
myself.

I'm wondering if anyone knowledgeable in this area could answer these few,
short questions just to confirm a few things.

Removing the offending assertion from class.c, and running generated test
cases that previously triggered it, I did not notice any incorrect
behaviour in terms of reflection, the 'is' operator failing, or the wrong
implementation of functions being used. Is there anywhere that I should be
looking in particular or any particular type of tests I can use to expose
an underlying fault that removing this assertion causes?

Is it possible that this assertion is vestigial or unnecessary?

-- 

James Venning
Research & Development - Ci2 - Product
Phone: +61 7 3167 7300 | Fax: +61 7 3167 7301 Address: Level 11,
TechnologyOne HQ, 540 Wickham Street, Fortitude Valley QLD 4006 (PO Box 96
Fortitude Valley QLD 4006) Email: jamie_venn...@technologyonecorp.com  Web:
TechnologyOneCorp.com 



Financials | Human Resource & Payroll | Supply Chain | Corporate
Performance Management | Property & Rating | Student Management | Asset
Management | Enterprise Content Management | Customer Relationship
Management | Consulting Services

*TechnologyOne (ASX:TNE) is Australia's largest publicly listed software
company, with offices across six countries including each state and
territory of Australia, as well as New Zealand, the South Pacific, Asia and
the United Kingdom. For 25 years, we have been providing powerful and
deeply integrated enterprise software solutions that are used every day by
more than 1000 leading corporations, government departments and statutory
authorities.*

TechnologyOne accepts no liability for any damage caused by this email or
its attachments. The information in this email is only for the intended
recipient and may contain confidential and/or privileged material. If you
received this in error, please kindly notify the sender and delete this
email and any attachments from your system. Opinions, conclusions and other
information in this message that do not relate to the official business of
the company shall be understood as neither given nor endorsed by it. If you
believe that you have been spammed please email
stop_s...@technologyonecorp.com .
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Is property?

2016-01-04 Thread Greg Young
Maybe explaining the use case a bit more is worthwhile. I am running
in the context of the profiling API. In many bits of code it is
prohibitively expensive (and not at all valuable) to look at
getters/setters. Even doing a hash lookup in them adds significant
overhead (think code that tends to use getters/setters for all field
access or code doing bunches of serialization).

I am looking for a way to fail fast on them, getting the name and
checking would be more expensive than the hash lookup.

On Mon, Jan 4, 2016 at 5:52 PM, Greg Young  wrote:
> Is there an easy way to test METHOD_ATTRIBUTE_SPECIAL_NAME for a MonoMethod *?
>
> On Mon, Jan 4, 2016 at 5:50 PM, Jb Evain  wrote:
>> Hi Greg,
>>
>> I'm afraid there's no exact flag for that. The best approximation
>> would be to test that it is flagged METHOD_ATTRIBUTE_SPECIAL_NAME, and
>> that its name starts with "set_" or "get_".
>>
>> Short of that, you'll need to iterate over the properties of the class
>> and check that one of its methods points to your MonoMethod.
>>
>> Jb
>>
>>
>>
>> On Mon, Jan 4, 2016 at 4:36 AM, Greg Young  wrote:
>>> How can you figure out if a method is a property from a MonoMethod *?
>>>
>>> I have poked around looking for this for an hour or so and can't find it.
>>>
>>> Cheers,
>>>
>>> Greg
>>>
>>> --
>>> Studying for the Turing test
>>> ___
>>> Mono-devel-list mailing list
>>> Mono-devel-list@lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
> --
> Studying for the Turing test



-- 
Studying for the Turing test
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Is property?

2016-01-04 Thread Greg Young
Is there an easy way to test METHOD_ATTRIBUTE_SPECIAL_NAME for a MonoMethod *?

On Mon, Jan 4, 2016 at 5:50 PM, Jb Evain  wrote:
> Hi Greg,
>
> I'm afraid there's no exact flag for that. The best approximation
> would be to test that it is flagged METHOD_ATTRIBUTE_SPECIAL_NAME, and
> that its name starts with "set_" or "get_".
>
> Short of that, you'll need to iterate over the properties of the class
> and check that one of its methods points to your MonoMethod.
>
> Jb
>
>
>
> On Mon, Jan 4, 2016 at 4:36 AM, Greg Young  wrote:
>> How can you figure out if a method is a property from a MonoMethod *?
>>
>> I have poked around looking for this for an hour or so and can't find it.
>>
>> Cheers,
>>
>> Greg
>>
>> --
>> Studying for the Turing test
>> ___
>> Mono-devel-list mailing list
>> Mono-devel-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list



-- 
Studying for the Turing test
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Is property?

2016-01-04 Thread Jb Evain
Hi Greg,

I'm afraid there's no exact flag for that. The best approximation
would be to test that it is flagged METHOD_ATTRIBUTE_SPECIAL_NAME, and
that its name starts with "set_" or "get_".

Short of that, you'll need to iterate over the properties of the class
and check that one of its methods points to your MonoMethod.

Jb



On Mon, Jan 4, 2016 at 4:36 AM, Greg Young  wrote:
> How can you figure out if a method is a property from a MonoMethod *?
>
> I have poked around looking for this for an hour or so and can't find it.
>
> Cheers,
>
> Greg
>
> --
> Studying for the Turing test
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Is property?

2016-01-04 Thread Greg Young
How can you figure out if a method is a property from a MonoMethod *?

I have poked around looking for this for an hour or so and can't find it.

Cheers,

Greg

-- 
Studying for the Turing test
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list