[ http://issues.apache.org/jira/browse/HARMONY-25?page=all ] Tim Ellison closed HARMONY-25: ------------------------------
> 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
