[verifier] Do method visibility checks for virtual final methods. Enable type visibil...
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 1 Jul 2016 23:57:07 +0000 (19:57 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 1 Jul 2016 23:57:07 +0000 (19:57 -0400)
commite56d29f7a32061cd239b9705a0dbf8914bfa4c39
tree5f2063f77da7bb27b589b8dc7a80402d88e6f03b
parent7a0a39aed930b1e10dbc4f73af4290b8c40c57f8
[verifier] Do method visibility checks for virtual final methods. Enable type visibility for all methods. Fixes #5644.

I addressed the issue mentioned in the comments of mono_method_can_access_method:

* FIXME:
* with generics calls to explicit interface implementations can be expressed
* directly: the method is private, but we must allow it. This may be opening
* a hole or the generics code should handle this differently.
* Maybe just ensure the interface type is public.

The way to do it is to check access between gmds
mcs/class/corlib/Test/System/DelegateTest.cs
mono/metadata/class.c