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/20 03:25:32 UTC
[jira] Updated: (HARMONY-3431)
[classlib][luni]java.net.JarURLConnection fails to get certificates.
[ https://issues.apache.org/jira/browse/HARMONY-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li updated HARMONY-3431:
----------------------------
Description:
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.
was:
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.
Summary: [classlib][luni]java.net.JarURLConnection fails to get certificates. (was: [classlib][luni]java.net.JarURLConnection of the same URL should contains the same JarFile.)
> [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
> 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.