[Mono-bugs] [Bug 41520][Nor] Changed - Fail to compiler constructors in attributes.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 1 May 2003 13:10:36 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=41520

--- shadow/41520	Tue Apr 29 13:13:45 2003
+++ shadow/41520.tmp.27663	Thu May  1 13:10:36 2003
@@ -86,6 +86,25 @@
                 object[] attrs = typeof (Foo).GetCustomAttributes
 (typeof(MineAttribute), true);
                 return 0;
         }
 }
 
+
+------- Additional Comments From miguel@ximian.com  2003-05-01 13:10 -------
+I changed the compiler to handle the null case, by passing a null, and
+now I  get this from the runtime:
+
+mono$ mono /cvs/mcs/mcs/mcs.exe /tmp/x.cs
+/tmp/x.cs(12) warning CS8100: NullReferenceException while trying to
+create attribute. Something's wrong!
+Compilation succeeded - 1 warning(s)
+
+Also the Corba Remoting code no longer compiles:
+
+mcs -out:CorbaRemotingLibrar.dll -target:library *.cs
+
+mono$ mcs -target:library *.cs -out:../RemotingCorbaLibrary.dll  
+
+** ERROR **: only types allowed, not System.String
+
+