harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3431) [classlib][luni]java.net.JarURLConnection of the same URL should contains the same JarFile.
Date Tue, 20 Mar 2007 01:53:32 GMT
[classlib][luni]java.net.JarURLConnection of the same URL should contains the same JarFile.
-------------------------------------------------------------------------------------------

                 Key: HARMONY-3431
                 URL: https://issues.apache.org/jira/browse/HARMONY-3431
             Project: Harmony
          Issue Type: Bug
            Reporter: Leo Li


Here is an example:

 public void testJarURLConnection_getJarFile() throws Exception
    {
        URL url1 = new URL("jar:file:D:/test.jar/Test.class");
        JarURLConnection connection1 = (JarURLConnection) url1.openConnection();
        JarURLConnection connection2 = (JarURLConnection) url1.openConnection();
        URL url2 = new URL("jar:file:D:/test.jar/Test.class");
        JarURLConnection connection3 = (JarURLConnection) url2.openConnection();
        assertSame(connection1.getJarFile(), connection2.getJarFile());
        assertSame(connection1.getJarFile(), connection3.getJarFile());            
    }

RI passes.
Harmony fails.

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