Hi Jb,

I was writing the repro case and had a thought about what the problem
could be. I rechecked my code, and it turns out the bug was mine. When
I was creating the 'Newarr' instruction, I'd passed the Create(...)
method the type reference for object[] (instead of Object), so it was
creating an instance of object[][] and storing it into the local
variable. The ArrayTypeMismatchException was then thrown when
attempting to store anything in the array, because the element type of
the instance was object[].

peverify didn't pick it up, because it's valid to store an instance of
object[][] in an object[]-typed variable (because each element is an
object[], which can be stored in a slot for an Object).

Sorry for the false alarm :)

Cheers,
Jack

On Jan 30, 4:14 pm, Jb Evain <[email protected]> wrote:
> Hi,
>
> On Sun, Jan 30, 2011 at 9:37 PM, Jack Pappas <[email protected]> wrote:
> > I'll try to put a repro together for you and send it along shortly.
>
> That would be best, thanks.
>
> Jb

-- 
--
mono-cecil

Reply via email to