2005-11-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Fri, 11 Nov 2005 22:42:02 +0000 (22:42 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Fri, 11 Nov 2005 22:42:02 +0000 (22:42 -0000)
* codegen.cs (AssemblyClass.CheckInternalsVisibleAttribute):
Use the more explicit AssemblyName.FullName instead of
AssemblyName.Name to report errors.

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

mcs/gmcs/ChangeLog
mcs/gmcs/codegen.cs

index d16e92cb61f47cec0f90f314488bccacfea88256..9f270c246d3ecfad6fb584e6eea770e5f19bffcc 100644 (file)
@@ -1,3 +1,9 @@
+2005-11-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+       * codegen.cs (AssemblyClass.CheckInternalsVisibleAttribute): 
+       Use the more explicit AssemblyName.FullName instead of 
+       AssemblyName.Name to report errors.
+       
 2005-11-11  Marek Safar  <marek.safar@seznam.cz>
 
        * attribute.cs, class.cs, cs-tokenizer.cs, parameter.cs: Sync
index 3ee7f45bc45a5435526aee458843d8c6e3ac11b4..dcdff21af79eb8ffb0b2d0e8d05de65cd0bcd10b 100644 (file)
@@ -1243,7 +1243,7 @@ namespace Mono.CSharp {
                                throw new Exception ("Friend assembly `" + a.GetString () + 
                                                "' is invalid. InternalsVisibleTo cannot have version or culture specified.");
                        else if (aname.GetPublicKeyToken () == null && Name.GetPublicKeyToken () != null) {
-                               Report.Error (1726, a.Location, "Friend assembly reference `" + aname.Name + "' is invalid." +
+                               Report.Error (1726, a.Location, "Friend assembly reference `" + aname.FullName + "' is invalid." +
                                                " Strong named assemblies must specify a public key token in their InternalsVisibleTo declarations");
                                return false;
                        }