harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3258) [classlib][luni][netbeans] URL constructor doesn't handle .. properly
Date Wed, 28 Feb 2007 01:08:05 GMT

     [ 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.


Mime
View raw message