https://bugzilla.novell.com/show_bug.cgi?id=652186

https://bugzilla.novell.com/show_bug.cgi?id=652186#c0


           Summary: StackOverFlowException not detect with recursive
                    property
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


when a recursive property is called by a constructor property initializer mono
crashes without throwing a StackOverflowException.  Here is some code that
causes the crash.


using System;

namespace MyObject
{
    class Program
    {
        static void Main (string[] args)
        {
            MyObject t = new MyObject { X = 1.0};
        }
    }

    class MyObject
    {
        public double X {
            get { return X;}
            set { X = value;}
        }
    }
}

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to