[Mono-bugs] [Bug 69819][Nor] Changed - segfault on method call

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 22 Nov 2004 23:16:43 -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 dalton@stanfordalumni.org.


--- shadow/69819	2004-11-22 23:02:11.000000000 -0500
+++ shadow/69819.tmp.28736	2004-11-22 23:16:43.000000000 -0500
@@ -1,12 +1,12 @@
 Bug#: 69819
 Product: Mono: Compilers
 Version: 1.1
 OS: other
 OS Details: 
-Status: NEEDINFO   
+Status: CLOSED   
 Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: dalton@stanfordalumni.org               
@@ -42,6 +42,34 @@
 ------- Additional Comments From bmaurer@users.sf.net  2004-11-22 23:02 -------
 ArrayList.Add returns an `int' (the position of the new element).
 My mcs.exe will not compile this when you do SomeMethod as having an
 int param. Maybe 1.1.2 had a funky bug. Try the latest unstable build
+------- Additional Comments From dalton@stanfordalumni.org  2004-11-22 23:16 -------
+Ha, I just looked a little closer at what the intent of the
+original code was doing, and in fact the method DoSomething 
+and SomeMethod actually have the same name but different 
+My snippet should have said that DoSomething was trying to
+call DoSomething with a different signature.
+so there is both
+private void DoSomething(int i, ArrayList a) {}
+private void DoSomething(int i, long j)
+    ArrayList temp = new ArrayList();
+    temp.Add(j);
+    DoSomething(i, temp);
+So the compiler was cool with the implicit cast from int
+to long and when the method got executed it blew away
+the stack in infinite recursion...
+thank you Ben...