[Mono-dev] [patch] loader issue with local variables

Jb Evain jb at nurv.fr
Fri Mar 27 09:40:56 EDT 2009


Hey,

While investigating a Moonlight bug, I stumbled upon an issue from
which I extracted the attached test case (rename to .tar.gz).

When a method contains a local variable whose type is missing, we're
currently simply throwing an InvalidProgramException, but we're not
clearing the loader error. Which triggers a TypeLoadException on
InvalidProgramException. Funny.

I've attached a patch which fixes the issue here, but I'm not sure
it's the best place to deal with the issue.

Thanks,

-- 
Jb Evain  <jb at nurv.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mini.patch
Type: application/octet-stream
Size: 889 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090327/564c92c2/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repro.targz
Type: application/octet-stream
Size: 1417 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090327/564c92c2/attachment-0001.obj 


More information about the Mono-devel-list mailing list