[Mono-bugs] [Bug 539160] New: [Preserve] attribute causes random code to execute
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Sep 14 19:41:55 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=539160
Summary: [Preserve] attribute causes random code to execute
Classification: Mono
Product: MonoTouch
Version: unspecified
Platform: Macintosh
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Major
Priority: P5 - None
Component: Runtime
AssignedTo: gnorton at novell.com
ReportedBy: mikewarriner at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0; InfoPath.3)
Create a class:
public class MyItem
{
[Preserve]
public string MyParameter { get; set; }
}
Try to set the value by using generics and Reflection (actually using
SqlClient.cs) and calling
PropertyInfo p;
T obj = new T();
p = ...find parameter...
p.SetValue(obj, value, null);
Seems to randomly call a different object in the code tree, I think on the new
T().
Reproducible: Always
Steps to Reproduce:
1. As details
2.
3.
Actual Results:
Should work normally. Remove [Preserve] works fine
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list