**** Merged r49109 from MCS ****
authorMartin Baulig <martin@novell.com>
Mon, 5 Sep 2005 08:37:41 +0000 (08:37 -0000)
committerMartin Baulig <martin@novell.com>
Mon, 5 Sep 2005 08:37:41 +0000 (08:37 -0000)
svn path=/trunk/mcs/; revision=49451

mcs/gmcs/ChangeLog
mcs/gmcs/class.cs

index d4c7ba01124b64736524c56607eeec316871b0ba..bcd83452f039b2b4905fc5c5d6242339213f1bac 100644 (file)
@@ -1,3 +1,11 @@
+2005-08-30  Raja R Harinath  <rharinath@novell.com>
+
+       Fix #75802.
+       * class.cs (TypeContainer.VerifyClsName): Don't use a
+       PartialContainer when verifying CLS compliance.
+       (AbstractPropertyEventMethod): Set Parent here, ...
+       (PropertyMethod): ... not here.
+
 2005-08-30  Atsushi Enomoto  <atsushi@ximian.com>
 
        * attribute.cs : escaped attribute name should not be allowed to be
index ee188085bb72be29efa1058698b0c505b23f1e89..703965848d149949e657fe1267e459ab203d401a 100644 (file)
@@ -2546,10 +2546,10 @@ namespace Mono.CSharp {
 
                        foreach (DictionaryEntry entry in defined_names) {
                                MemberCore mc = (MemberCore)entry.Value;
-                               if (!mc.IsClsComplianceRequired (this))
+                               if (!mc.IsClsCompliaceRequired (mc.Parent))
                                        continue;
 
-                               string name = (string)entry.Key;
+                               string name = (string) entry.Key;
                                string basename = name.Substring (name.LastIndexOf ('.') + 1);
 
                                string lcase = basename.ToLower (System.Globalization.CultureInfo.InvariantCulture);
@@ -2566,9 +2566,9 @@ namespace Mono.CSharp {
                                        continue;                                       
 
                                if (found is MemberInfo) {
-                                       if (basename == ((MemberInfo)found).Name)
+                                       if (basename == ((MemberInfo) found).Name)
                                                continue;
-                                       Report.SymbolRelatedToPreviousError ((MemberInfo)found);
+                                       Report.SymbolRelatedToPreviousError ((MemberInfo) found);
                                } else {
                                        Report.SymbolRelatedToPreviousError ((MemberCore) found);
                                }
@@ -6147,7 +6147,7 @@ namespace Mono.CSharp {
                ReturnParameter return_attributes;
 
                public AbstractPropertyEventMethod (MemberBase member, string prefix)
-                       : base (null, SetupName (prefix, member, member.Location), null)
+                       : base (member.Parent, SetupName (prefix, member, member.Location), null)
                {
                        this.prefix = prefix;
                        IsDummy = true;
@@ -6155,7 +6155,7 @@ namespace Mono.CSharp {
 
                public AbstractPropertyEventMethod (MemberBase member, Accessor accessor,
                                                    string prefix)
-                       : base (null, SetupName (prefix, member, accessor.Location),
+                       : base (member.Parent, SetupName (prefix, member, accessor.Location),
                                accessor.Attributes)
                {
                        this.prefix = prefix;
@@ -6460,14 +6460,12 @@ namespace Mono.CSharp {
                                : base (method, prefix)
                        {
                                this.method = method;
-                               Parent = method.Parent;
                        }
 
                        public PropertyMethod (MethodCore method, Accessor accessor, string prefix)
                                : base (method, accessor, prefix)
                        {
                                this.method = method;
-                               Parent = method.Parent;
                                this.ModFlags = accessor.ModFlags;
                                yields = accessor.Yields;