[
https://issues.apache.org/jira/browse/FELIX-4456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Pauls reassigned FELIX-4456:
---------------------------------
Assignee: Karl Pauls
> openConnection().getContentLengthLong() always returns -1 for bundle URLs on
> Java7
> ----------------------------------------------------------------------------------
>
> Key: FELIX-4456
> URL: https://issues.apache.org/jira/browse/FELIX-4456
> Project: Felix
> Issue Type: Bug
> Components: Framework
> Affects Versions: framework-4.2.1
> Reporter: Stuart McCulloch
> Assignee: Karl Pauls
>
> Java7 introduced a new method to URLConnection called getContentLengthLong.
> Felix's URLHandlersBundleURLConnection only overrides getContentLength, so
> the default getContentLengthLong implementation is left in place and always
> returns -1 for 'bundle' URLs when running Felix on Java7.
> The client-side workaround is to fall-back to getContentLength whenever
> getContentLengthLong returns -1, but it would be great if this could be fixed
> in a future framework release.
--
This message was sent by Atlassian JIRA
(v6.2#6252)