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] Created: (HARMONY-25) Out of spec port value in URI string should result in registry-based URI
Date Sat, 31 Dec 2005 04:57:02 GMT
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
 Assigned to: 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