[Mono-bugs] [Bug 80857][Wis] New - [2.0] URI UriKind.Relative GetHashCode always returns -1

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 14 17:15:12 EST 2007


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 grompf at sublimeintervention.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80857

--- shadow/80857	2007-02-14 17:15:12.000000000 -0500
+++ shadow/80857.tmp.18304	2007-02-14 17:15:12.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 80857
+Product: Mono: Runtime
+Version: 1.2
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: grompf at sublimeintervention.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [2.0] URI UriKind.Relative GetHashCode always returns -1
+
+The following code snippet generates the same hash code for 2 different uris (-1 comes from the 
+uninitialized port)
+
+using System;
+
+class Test {
+  static void Main (string [] args) {
+    Uri a = new Uri ("foo/bar", UriKind.Relative);
+    Uri b = new Uri ("bar/foo", UriKind.Relative);
+    Console.WriteLine ("{0} {1}", a.GetHashCode (), b.GetHashCode ());
+  }
+}


More information about the mono-bugs mailing list