2004-10-12 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Tue, 12 Oct 2004 03:27:20 +0000 (03:27 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 12 Oct 2004 03:27:20 +0000 (03:27 -0000)
* MonoGenericInst.cs (MonoGenericInst): Call initialize() just
before calling the *_internal() methods.

svn path=/trunk/mcs/; revision=34892

mcs/class/corlib/System.Reflection/ChangeLog
mcs/class/corlib/System.Reflection/MonoGenericInst.cs

index b1daf9444c7faa5e8e141dd7a5654b52f1477c41..12e15dc56032dda75c0c961014fec31607c5cef7 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-12  Martin Baulig  <martin@ximian.com>
+
+       * MonoGenericInst.cs (MonoGenericInst): Call initialize() just
+       before calling the *_internal() methods.
+
 2004-10-12  Zoltan Varga  <vargaz@freemail.hu>
 
        * MethodBody.cs: Implement this.
index e6a3dcd96ef734c4257c455f83b63a7bf5317d85..c5c5b55952e7ebfd0cff2968aeb7214e12cf3e91 100644 (file)
@@ -125,8 +125,6 @@ namespace System.Reflection
 
                public override MethodInfo[] GetMethods (BindingFlags bf)
                {
-                       initialize ();
-
                        ArrayList l = new ArrayList ();
 
                        //
@@ -166,6 +164,8 @@ namespace System.Reflection
                        bool match;
                        MethodAttributes mattrs;
 
+                       initialize ();
+
                        MethodInfo[] methods = GetMethods_internal (reftype);
 
                        for (int i = 0; i < methods.Length; i++) {
@@ -201,8 +201,6 @@ namespace System.Reflection
 
                public override ConstructorInfo[] GetConstructors (BindingFlags bf)
                {
-                       initialize ();
-
                        ArrayList l = new ArrayList ();
 
                        Type current_type = this;
@@ -234,6 +232,8 @@ namespace System.Reflection
                        bool match;
                        MethodAttributes mattrs;
 
+                       initialize ();
+
                        ConstructorInfo[] ctors = GetConstructors_internal (reftype);
 
                        for (int i = 0; i < ctors.Length; i++) {
@@ -270,8 +270,6 @@ namespace System.Reflection
 
                public override FieldInfo[] GetFields (BindingFlags bf)
                {
-                       initialize ();
-
                        ArrayList l = new ArrayList ();
 
                        Type current_type = this;
@@ -303,6 +301,8 @@ namespace System.Reflection
                        bool match;
                        FieldAttributes fattrs;
 
+                       initialize ();
+
                        FieldInfo[] fields = GetFields_internal (reftype);
 
                        for (int i = 0; i < fields.Length; i++) {
@@ -338,8 +338,6 @@ namespace System.Reflection
 
                public override PropertyInfo[] GetProperties (BindingFlags bf)
                {
-                       initialize ();
-
                        ArrayList l = new ArrayList ();
 
                        Type current_type = this;
@@ -372,6 +370,8 @@ namespace System.Reflection
                        MethodAttributes mattrs;
                        MethodInfo accessor;
 
+                       initialize ();
+
                        PropertyInfo[] properties = GetProperties_internal (reftype);
 
                        for (int i = 0; i < properties.Length; i++) {
@@ -412,8 +412,6 @@ namespace System.Reflection
 
                public override EventInfo[] GetEvents (BindingFlags bf)
                {
-                       initialize ();
-
                        ArrayList l = new ArrayList ();
 
                        Type current_type = this;
@@ -446,6 +444,8 @@ namespace System.Reflection
                        MethodAttributes mattrs;
                        MethodInfo accessor;
 
+                       initialize ();
+
                        EventInfo[] events = GetEvents_internal (reftype);
 
                        for (int i = 0; i < events.Length; i++) {