[Mono-bugs] [Bug 427561] ListViewSubItemCollection different behaviour in . net & mono enviroment
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Sep 18 18:29:22 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=427561
User nagappan at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=427561#c1
Nagappan A <nagappan at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nagappan at gmail.com
AssignedTo|mono-bugs at lists.ximian.com |calberto.cortez at gmail.com
--- Comment #1 from Nagappan A <nagappan at gmail.com> 2008-09-18 16:29:21 MDT ---
Index: ListViewItem.cs
===================================================================
--- ListViewItem.cs (revision 113478)
+++ ListViewItem.cs (working copy)
-1351,6 +1351,11 @@
{
this.owner = owner;
this.list = new ArrayList ();
+ try {
+ Add (owner.Text);
+ } catch {
+ // Ignore to mimic MS.NET behavior
+ }
}
#endregion // Public Constructors
But I could see failure in the existing tests under WinForms directory with my
patch :(
Failures:
1) MonoTests.System.Windows.Forms.ListViewItemTest.ListViewItemTestClone : #1
expected:<Color [Blue]>
but was:<Color [WindowText]>
at MonoTests.System.Windows.Forms.ListViewItemTest.ListViewItemTestClone ()
[0x0007e] in
/home/nags/work/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ListViewItemTest.cs:645
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke
(object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00057] in
/home/nags/work/mcs/class/corlib/System.Reflection/MonoMethod.cs:159
--
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.
More information about the mono-bugs
mailing list