[Mono-bugs] [Bug 56148][Wis] Changed - unhelpful message if bad args are passed to DllImport attribute
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 29 Mar 2004 00:47:07 -0500 (EST)
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 vladimir@pobox.com.
http://bugzilla.ximian.com/show_bug.cgi?id=56148
--- shadow/56148 2004-03-29 00:43:46.000000000 -0500
+++ shadow/56148.tmp.21645 2004-03-29 00:47:07.000000000 -0500
@@ -2,22 +2,22 @@
Product: Mono: Compilers
Version: unspecified
OS: Red Hat 9.0
OS Details:
Status: NEW
Resolution:
-Severity:
-Priority: Normal
+Severity: Unknown
+Priority: Wishlist
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: vladimir@pobox.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: mcs bails with InvalidCastException while compiling attached file
+Summary: unhelpful message if bad args are passed to DllImport attribute
Trying to compile the attached file with CVS mcs on 28 Mar results in:
Unhandled Exception: System.InvalidCastException: Cannot cast from source
type to destination type.
in [0x001ea] (at /home/vladimir/proj/mono-cvs/mcs/mcs/attribute.cs:1131)
@@ -42,6 +42,11 @@
Mono.CSharp.Driver:Main (string[])
------- Additional Comments From vladimir@pobox.com 2004-03-29 00:43 -------
Created an attachment (id=7127)
bug19.cs
+
+------- Additional Comments From vladimir@pobox.com 2004-03-29 00:47 -------
+Ooh, this is my fault -- CallingConvention expects an enum value, not
+a string, as looking at attribute.cs revealed. Some better
+diagnostics might be helpful here.