[Mono-bugs] [Bug 78541][Nor] Changed - NRE while iterating over
XPathNodeIterator
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue May 30 22:56:29 EDT 2006
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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78541
--- shadow/78541 2006-05-30 16:04:43.000000000 -0400
+++ shadow/78541.tmp.22041 2006-05-30 22:56:29.000000000 -0400
@@ -1,22 +1,21 @@
Bug#: 78541
-Product: Mono: Class Libraries
+Product: Mono: Compilers
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
-Priority: Wishlist
-Component: Sys.XML
-AssignedTo: atsushi at ximian.com
+Severity: Unknown
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs at ximian.com
ReportedBy: jonathan.chambers at ansys.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
-Cc:
Summary: NRE while iterating over XPathNodeIterator
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
NRE while iterating over XPathNodeIterator
@@ -38,6 +37,32 @@
Additional Information:
------- Additional Comments From jonathan.chambers at ansys.com 2006-05-30 16:04 -------
Created an attachment (id=17122)
Zip file of test case
+
+------- Additional Comments From atsushi at ximian.com 2006-05-30 22:56 -------
+It is not an XPath bug since replacing
+
+ foreach (XPathNavigator importNav in inav)
+
+with
+
+ while (inav.MoveNext ())
+
+just works.
+
+It rather looks iterator bug since replacing
+
+ while (MoveNext ())
+ yield return Current;
+
+
+in XPathNodeIterator.GetEnumerator () with
+
+ ArrayList al = new ArrayList ();
+ while (MoveNext ())
+ al.Add (Current);
+ return al.GetEnumerator ();
+
+makes it work.
More information about the mono-bugs
mailing list