Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/gmcs
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2006-03-01 16:49:06 +0300
committerRaja R Harinath <harinath@hurrynot.org>2006-03-01 16:49:06 +0300
commit4675380f0b7ace5683e840915f8b3587f56a143c (patch)
tree2b97d44017dddcc4641252f8c29d7a7ea975e167 /mcs/gmcs
parent9227de8f825cb9913c922d55372f35564bedf65f (diff)
Fix #77642.
* mcs/typemanager.cs (GetFullNameSignature): Don't nullref on protected accessors. * gmcs/typemanager.cs (GetFullNameSignature): Likewise. * errors/cs0205-3.cs, errors/CS0205-3-lib.dll: New test based on #77642. svn path=/trunk/mcs/; revision=57463
Diffstat (limited to 'mcs/gmcs')
-rw-r--r--mcs/gmcs/ChangeLog6
-rw-r--r--mcs/gmcs/typemanager.cs4
2 files changed, 8 insertions, 2 deletions
diff --git a/mcs/gmcs/ChangeLog b/mcs/gmcs/ChangeLog
index baf574015f3..6acb0b69e39 100644
--- a/mcs/gmcs/ChangeLog
+++ b/mcs/gmcs/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-01 Raja R Harinath <rharinath@novell.com>
+
+ Fix #77642.
+ * typemanager.cs (GetFullNameSignature): Don't nullref on
+ protected accessors.
+
2006-02-16 Martin Baulig <martin@ximian.com>
* generic.cs
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs
index dfe9677a7b4..c4db779262a 100644
--- a/mcs/gmcs/typemanager.cs
+++ b/mcs/gmcs/typemanager.cs
@@ -640,9 +640,9 @@ public partial class TypeManager {
{
PropertyInfo pi = mi as PropertyInfo;
if (pi != null) {
- MethodBase pmi = pi.GetGetMethod ();
+ MethodBase pmi = pi.GetGetMethod (true);
if (pmi == null)
- pmi = pi.GetSetMethod ();
+ pmi = pi.GetSetMethod (true);
if (GetParameterData (pmi).Count > 0)
mi = pmi;
}