[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]System.Uri() Buggy

From: Gopal V
Subject: [DotGNU]System.Uri() Buggy
Date: Thu, 5 Sep 2002 23:55:04 +0530
User-agent: Mutt/1.2.5i

Hi All,
        Just checking something in URI when I noticed this curious 
thing ... and IndexOutOfRangeException ...

address@hidden Uri]$ cscc -lSystem 1.cs
address@hidden Uri]$ ilrun a.out.exe
Uncaught exception: System.ArgumentOutOfRangeException: String range is out of 
Parameter name: length
        at System.String.Substring(Int32, Int32)
        at System.Uri.Parse()
        at System.Uri..ctor(String, Boolean)
        at System.Uri..ctor(String)
        at UriTest.Main()

A closer scruitiny recognized various bugs in System.Uri ... of which
this is the only one which I bothered to track down .. More later .


PS: I have managed to get Uri building with pnet in an isolated
    System.Test namespace for testing purposes, if anyone needs 
    just something like this, drop me a line ..
The difference between insanity and genius is measured by success

Attachment: patch
Description: Text document

Attachment: 1.cs
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]