Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 62321 invoked from network); 27 Dec 2006 10:35:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Dec 2006 10:35:46 -0000 Received: (qmail 69603 invoked by uid 500); 27 Dec 2006 10:35:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 69579 invoked by uid 500); 27 Dec 2006 10:35:53 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 69569 invoked by uid 99); 27 Dec 2006 10:35:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Dec 2006 02:35:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Dec 2006 02:35:45 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50D657142BA for ; Wed, 27 Dec 2006 02:35:25 -0800 (PST) Message-ID: <20256763.1167215725328.JavaMail.jira@brutus> Date: Wed, 27 Dec 2006 02:35:25 -0800 (PST) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-1127) [classlib][net] compatibility: Harmony constructor URI(String * 5) throws URISyntaxExceptionwhile RI does not MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-1127?page=all ] Tim Ellison closed HARMONY-1127. -------------------------------- Resolution: Fixed > [classlib][net] compatibility: Harmony constructor URI(String * 5) throws URISyntaxExceptionwhile RI does not > ------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1127 > URL: http://issues.apache.org/jira/browse/HARMONY-1127 > Project: Harmony > Issue Type: Bug > Components: Non-bug differences from RI > Reporter: Vladimir Ivanov > Assigned To: Tim Ellison > > The Harmony method java.net.URI(String scheme, String authority, String path, String query, String fragment) throws URISyntaxException for incorrect ipv6 address while RI silently skip it. > Note, the URI unit test for this constructor failed on RI and passed on Harmony. > ====================== test.java ======================= > import java.net.*; > public class test { > public static void main (String[] args) throws Exception { > System.out.println("res = " + new URI("ftp", "[www.abc.com]", "/dir", "query", "frag")); > } > } > ==================================================== > Output: > C:\tmp\tmp17>C:\jdk1.5.0_06\bin\java.exe -cp . -showversion test > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) > res = ftp:///dir?query#frag > C:\tmp\tmp17>C:\harmony\classlib1.5\deploy\jdk\jre\bin\java.exe -cp . -showversion test > java version 1.5 (subset) > (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > Exception in thread "main" java.net.URISyntaxException: Malformed ipv6 address: [www.abc.com] > at java.net.URI$Helper.isValidHost(URI.java:467) > at java.net.URI$Helper.parseAuthority(URI.java:431) > at java.net.URI$Helper.parseURI(URI.java:31) > at java.net.URI$Helper.access$100(URI.java:22) > at java.net.URI.(URI.java:199) > at test.main(test.java:5) -- 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