[Mono-bugs] [Bug 60330][Wis] Changed - change the content of a string property from inside the class causes a stack overflow
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 17 Jun 2004 07:59:54 -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 sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=60330
--- shadow/60330 2004-06-17 02:05:24.000000000 -0400
+++ shadow/60330.tmp.25120 2004-06-17 07:59:54.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 60330
Product: Mono: Runtime
Version: unspecified
OS: unknown
OS Details: FC2
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: NOTABUG
Severity: Unknown
Priority: Wishlist
Component: misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: raf@ophion.org
QAContact: mono-bugs@ximian.com
@@ -80,6 +80,26 @@
}
}
------- Additional Comments From raf@ophion.org 2004-06-17 02:05 -------
IT does not have to be a string. setting any property causes an exception
+
+------- Additional Comments From sebastien@ximian.com 2004-06-17 07:59 -------
+Your set property is recursive.
+
+public static string Blah {
+ get { return (Blah);}
+ set { Blah = value;}
+}
+
+The endless recursion is causing the stack overflow.
+Changing code to
+
+private string _blah;
+
+public static string Blah {
+ get { return _blah;}
+ set { _blah = value;}
+}
+
+should work without problems.