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] Commented: (HARMONY-3431) [classlib][luni]java.net.JarURLConnection fails to get certificates.
Date Tue, 12 Jun 2007 03:35:26 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503713
] 

Leo Li commented on HARMONY-3431:
---------------------------------

Hi, Mikhail:
      Besides, in order to reproduce the problem, the testcase must run stand-alone, that
is, no other actions that might lead to load security providers shall begin before the testcase.
       I believe, it is a bootstrap problem of loading security provider.  Harmony needs a
solution for it and I am now searching for a way.

Good luck!
Leo.

> [classlib][luni]java.net.JarURLConnection fails to get certificates.
> --------------------------------------------------------------------
>
>                 Key: HARMONY-3431
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3431
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>
> Here is an example:
>  public void test() throws Exception
>     {
>         URL url = new URL("jar:file:D:/workspaces/workspace/harmony/deploy/jdk/jre/lib/ext/bcprov.jar!/org/bouncycastle/asn1/DEREnumerated.class");
>         JarURLConnection connection = (JarURLConnection) url.openConnection();
>         InputStream in = connection.getInputStream();
>         byte[] data = new byte[1024];
>         while(in.read(data)>=0);
>         in.close();
>         assertNotNull(connection.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