[Mono-bugs] [Bug 39280][Nor] Changed - StreamReader.Peek () should throw when base stream is closed
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 7 Mar 2003 13:18:56 -0500 (EST)
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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=39280
--- shadow/39280 Fri Mar 7 09:43:37 2003
+++ shadow/39280.tmp.8047 Fri Mar 7 13:18:56 2003
@@ -2,13 +2,13 @@
Product: Mono/Class Libraries
Version: unspecified
OS: Red Hat 8.0
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: CORLIB
AssignedTo: mono-bugs@ximian.com
ReportedBy: ndrochak@gol.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -28,6 +28,14 @@
StreamReader r = new StreamReader(m);
m.Close();
int nothing = r.Peek();
}
}
+
+------- Additional Comments From gonzalo@ximian.com 2003-03-07 13:18 -------
+This has to do with an old issue... Remember in July i tested that MS
+StreamReader.Peek don't call CanSeek property of the underlying stream?
+
+The fix is to remove the if (base_stream.CanSeek test, but i need to dig
+in the xchat logs to remember if anyone pointed out any problem with
+that...