[Mono-bugs] [Bug 23644] Changed - mcs is getting the incorrect overloaded method

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
23 Apr 2002 19:49:27 -0000

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 joe@ximian.com.


--- shadow/23644	Mon Apr 22 23:02:06 2002
+++ shadow/23644.tmp.15008	Tue Apr 23 15:49:27 2002
@@ -1,13 +1,13 @@
 Bug#: 23644
 Product: Mono/MCS
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
 Severity: Unknown
 Priority: Major
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: joe@ximian.com               
 QAContact: mono-bugs@ximian.com
@@ -79,6 +79,36 @@
 I have checked in a fix for this but I am unsure about how to run 
 your test case :-) Could you please update from CVS, check if it's 
 okay and close the bug ? Thanks.
 ------- Additional Comments From miguel@ximian.com  2002-04-22 23:02 -------
 Ravi fixed this bug today
+------- Additional Comments From joe@ximian.com  2002-04-23 15:49 -------
+I am not sure this is fixed.  I'm having the build die earlier now, on
+something similar:
+make[1]: Entering directory `/cvs/mono/gtk-sharp/glib'
+/opt/mono/bin/mono /opt/mono/bin/mcs.exe --unsafe --target library -o
+glib-sharp.dll --recurse *.cs
+./Object.cs(223) error CS1502: The best overloaded match for method
+'void g_object_get (System.IntPtr, string, out string, System.IntPtr)'
+has some invalid arguments
+./Object.cs(223) error CS1503: Argument 3: Cannot convert from 'out
+bool' to 'out string'
+./Object.cs(223) error CS-00-6: Could not find any applicable function
+for this argument list
+Relevant declarations of g_object_get():
+[DllImport("gobject-2.0", CallingConvention=CallingConvention.Cdecl)]
+static extern void g_object_get (IntPtr obj, string name, out bool
+val, IntPtr term);
+[DllImport("gobject-2.0", CallingConvention=CallingConvention.Cdecl)]
+static extern void g_object_get (IntPtr obj, string name, out string
+val, IntPtr term);
+(there are others, like "out int val", "out float val", etc.)
+Is there something not right in the DllImport() attribute?  I'm afraid
+I don't know of a good way to make a test case for this. :(