Bugzilla – Attachment 252753 Details for
Bug 445852
Mono runtime fails loaded some nested classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
A mono/metadata/class.c patch to fix this problem.
nested-class.patch (text/plain), 835 bytes, created by
Kevin Hester
on 2008-11-17 23:27:05 UTC
(
hide
)
Description:
A mono/metadata/class.c patch to fix this problem.
Filename:
MIME Type:
Creator:
Kevin Hester
Created:
2008-11-17 23:27:05 UTC
Size:
835 bytes
patch
obsolete
>--- mono-2.0-1/mono/metadata/class.c 2008-09-25 10:46:58.000000000 -0700 >+++ mono-fixed/mono/metadata/class.c 2008-11-17 14:54:28.000000000 -0800 >@@ -5541,12 +5541,24 @@ > char *s = strchr (nested, '/'); > GList *tmp; > >+ /* Make sure the parent class has been inited >+ (required to find the nested classes) >+ I suspect this bug hasn't been found before because typically an >+ instance of the outer class is created before any nested classes >+ are referenced. This however is not the case in F# code (the >+ problem could also occur in C# as well >+ */ >+ if(!mono_class_init(class)) >+ return NULL; >+ > if (s) { > *s = 0; > s++; > } >+ > for (tmp = class->nested_classes; tmp; tmp = tmp->next) { > found = tmp->data; >+ > if (strcmp (found->name, nested) == 0) { > if (s) > return return_nested_in (found, s);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 445852
: 252753