You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2007/03/22 03:22:32 UTC
[jira] Commented: (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
[ https://issues.apache.org/jira/browse/HARMONY-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482989 ]
Leo Li commented on HARMONY-3424:
---------------------------------
Hi, Alexei:
Verified. Thank you.
Good luck,
Leo
> [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.