[Mono-bugs] [Bug 74623][Min] Changed - Compiler can't handle correctly attributes with long constructor arguments
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 17 Apr 2005 05:03:24 -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 dominic_ullmann@hispeed.ch.
http://bugzilla.ximian.com/show_bug.cgi?id=74623
--- shadow/74623 2005-04-16 14:57:02.000000000 -0400
+++ shadow/74623.tmp.1840 2005-04-17 05:03:24.000000000 -0400
@@ -47,6 +47,22 @@
Created an attachment (id=14946)
test showing the problem
------- Additional Comments From miguel@ximian.com 2005-04-16 14:57 -------
This only happens with the .NET runtime, it works fine with Mono.
+
+------- Additional Comments From dominic_ullmann@hispeed.ch 2005-04-17 05:03 -------
+In my opinion, the problem is on the mono side.
+MCS can't correctly handle the actual attribute argument of type
+System.Int32, because the formal type in the constructor is
+System.Int64.
+
+A a workaraound, the attribute could be created wiht a System.Int64
+argument. In this case, the mcs compiler works ok.
+
+[TestAttribute(1L)]
+public class TestA {
+}
+
+BTW: The warning is misleading, because it has nothing to do with
+MS.NET (it happens also on Linux, and there is no MS.NET at all).