[Mono-bugs] [Bug 67412][Blo] New - NullReferenceException while trying to create attribute.Something's wrong!
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 3 Oct 2004 22:55:33 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=67412
--- shadow/67412 2004-10-03 22:55:33.000000000 -0400
+++ shadow/67412.tmp.22820 2004-10-03 22:55:33.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 67412
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: NullReferenceException while trying to create attribute.Something's wrong!
+
+[BenM@x86-mono BenM]$ cat a.cs
+using System;
+
+class X : Attribute {
+ public X (object o) {}
+ [X (null)]
+ static void Main () {}
+}
+
+[BenM@x86-mono BenM]$ mcs a.cs
+a.cs(5) warning CS8101: NullReferenceException while trying to create
+attribute.Something's wrong!
+Compilation succeeded - 1 warning(s)
+
+This is messed up in two ways. One, the exception was squashed and we
+compiled (it should be an error. I dont know why it was made into a
+warning...). Second, there should be no exception.