harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-25) Out of spec port value in URI string should result in registry-based URI
Date Sat, 31 Dec 2005 21:32:03 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-25?page=all ]
     
Tim Ellison resolved HARMONY-25:
--------------------------------

    Resolution: Fixed

 Fixed in luni java/net/URI.java at repo revision 360450.

> Out of spec port value in URI string should result in registry-based URI
> ------------------------------------------------------------------------
>
>          Key: HARMONY-25
>          URL: http://issues.apache.org/jira/browse/HARMONY-25
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Tim Ellison
>     Assignee: Tim Ellison

>
> Since negative port numbers are outside the specified range (int) for port values, the
URI class should consider the authority to be registry-based if (what would be) the port is
apparently negative.
> Therefore, given
>     URI uri = new URI("http://host:-8096/path/index.html");
>     uri.getPort() should return  -1  (= undefined)
>     uri.getHost()  should return null
>     uri.parseServerAuthority()  should throw a URISyntaxException

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message