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-3424) [classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry
Date Mon, 19 Mar 2007 10:04:32 GMT
[classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry
of the same jarFile has readed all the data of the same entry
----------------------------------------------------------------------------------------------------------------------------------------------------------------

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


Here is an example:
 public void testGetCerificates() throws Exception
    {
        JarFile jarFile = new JarFile("bcprov.jar");
        JarEntry entry1 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
        JarEntry entry2 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
        InputStream in = jarFile.getInputStream(entry1);
        byte[] data = new byte[1024];
        while(in.read(data)>=0);
        in.close();
        
        assertNotNull(entry1.getCertificates());
        assertNotNull(entry2.getCertificates());       
        
    }

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