[fullaot] Don't use the complicated generics-heavy cache under full-aot.
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 1 Nov 2013 21:51:16 +0000 (17:51 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 1 Nov 2013 21:51:16 +0000 (17:51 -0400)
mcs/class/corlib/System.Reflection/MonoProperty.cs

index eb1aa06efeaf5bb1295e730d9330dc4318239f81..24dcf8b7470f9cb7542ef9873c1213658027b8f1 100644 (file)
@@ -299,7 +299,7 @@ namespace System.Reflection {
                {
                        if (index == null || index.Length == 0) {
                                /*FIXME we should check if the number of arguments matches the expected one, otherwise the error message will be pretty criptic.*/
-#if !MONOTOUCH
+#if !FULL_AOT_RUNTIME
                                if (cached_getter == null) {
                                        MethodInfo method = GetGetMethod (true);
                                        if (!DeclaringType.IsValueType && !method.ContainsGenericParameters) { //FIXME find a way to build an invoke delegate for value types.