harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-3665) [classlib][archive][netbeans] JarURLConnection.getContentLength() returns -1 instead of file size
Date Tue, 24 Apr 2007 00:32:15 GMT

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

Vasily Zakharov closed HARMONY-3665.
------------------------------------


Thanks Mikhail, Alexei. The patch applied fine.


> [classlib][archive][netbeans] JarURLConnection.getContentLength() returns -1 instead
of file size
> -------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3665
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3665
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Assigned To: Alexei Zakharov
>         Attachments: H-3665.patch, test.jar
>
>
> JarURLConnection.getContentLength() returns -1 for files in the .jar archive.
> Here's a test to reproduce the problem. Please put the attached test.jar to the current
directory before running.
> public class Test {
>     public static void main(String args[]) throws Exception {
>         System.out.println(new java.net.URL("jar:file:test.jar!/a").openConnection().getContentLength());
>     }
> }
> Output on RI:
> 12
> Output on Harmony:
> -1
> This problem was discovered while trying to run NetBeans on Harmony.

-- 
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