Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 50212 invoked from network); 28 Feb 2007 01:08:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Feb 2007 01:08:27 -0000 Received: (qmail 10206 invoked by uid 500); 28 Feb 2007 01:08:35 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 10179 invoked by uid 500); 28 Feb 2007 01:08:35 -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 10058 invoked by uid 99); 28 Feb 2007 01:08:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Feb 2007 17:08:35 -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; Tue, 27 Feb 2007 17:08:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DF5747140D1 for ; Tue, 27 Feb 2007 17:08:05 -0800 (PST) Message-ID: <17409137.1172624885912.JavaMail.jira@brutus> Date: Tue, 27 Feb 2007 17:08:05 -0800 (PST) From: "Vasily Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3258) [classlib][luni][netbeans] URL constructor doesn't handle .. properly In-Reply-To: <27753095.1172624885763.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vasily Zakharov updated HARMONY-3258: ------------------------------------- Summary: [classlib][luni][netbeans] URL constructor doesn't handle .. properly (was: [classlib][luni][netbeans] URL constructor doesn't handle .. propertly) > [classlib][luni][netbeans] URL constructor doesn't handle .. properly > --------------------------------------------------------------------- > > Key: HARMONY-3258 > URL: https://issues.apache.org/jira/browse/HARMONY-3258 > Project: Harmony > Issue Type: Bug > Components: App-Oriented Bug Reports, Classlib > Reporter: Vasily Zakharov > > This bug was discovered while trying to run Netbeans. > Consider this simple test: > import java.net.URL; > public class Test { > public static void main(String args[]) throws Exception { > String context = "jar:file:/a!/b"; > String spec = "../d"; > System.out.println(new URL(new URL(context), spec)); > context = "jar:file:/a!/b/c"; > spec = "../d"; > System.out.println(new URL(new URL(context), spec)); > } > } > Output on RI: > jar:file:/a!/d > jar:file:/a!/d > Output on Harmony: > jar:file:/a!/../d > jar:file:/a!/b/../d > In both cases Harmony output is incorrect, and also Harmony output in two cases is different, while it's identical on RI. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.