[Mono-bugs] [Bug 45575][Min] New - System.Net..IPHostEntry Constructor initializes fields incorrectly

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 27 Jun 2003 21:59:52 -0400 (EDT)


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 barce@frlp.utn.edu.ar.

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

--- shadow/45575	Fri Jun 27 21:59:52 2003
+++ shadow/45575.tmp.1920	Fri Jun 27 21:59:52 2003
@@ -0,0 +1,33 @@
+Bug#: 45575
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 960 Six months
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: barce@frlp.utn.edu.ar               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Net..IPHostEntry Constructor initializes fields incorrectly
+
+This is the actual constructor:
+
+                public IPHostEntry() {
+                        hostName = "localhost";
+                        addressList = new IPAddress[1];
+                        addressList[0] = IPAddress.Loopback;
+                        aliases = new String[0];
+                }
+
+The specification does not require to initialize the fields. The MS .NET
+Framework (1.1) does not initialize them.
+
+Proposed constructor:
+                public IPHostEntry() {
+                }