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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=381559#c3


Raja Harinath <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]




--- Comment #3 from Raja Harinath <[EMAIL PROTECTED]>  2008-04-24 22:13:40 MST 
---
Thanks for the patch and analysis.  As you say the prepare_for_load protocol is
not particularly necessary in this scenario.

Unfortunately, this is a more insidous bug than that.

StringConcat is somewhat of a bad citizen here since it violates the (albeit
undocumented) assumptions of the prepare_for_load protocol.  Someone tried to
accomodate it when handling properties, but introduced a different bug instead.

---------------8<---------------
class Foo {
  static int id;
  int my_id = ++id;

  string s {
    get { return my_id.ToString (); }
    set { if (value != my_id + "A1B2") throw new System.Exception (); }
  }

  static void Main ()
  {
    (new Foo ()).s += "A" + 1 + "B" + 2;
  }
}
---------------8<---------------


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

Reply via email to