harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Closed: (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 Thu, 22 Mar 2007 07:49:32 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexei Zakharov closed HARMONY-3424.
------------------------------------


The fix was verified by Leo. JIRA closed.

> [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
>         Assigned To: Alexei Zakharov
>         Attachments: patch-3424.diff
>
>
> 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