[ https://issues.apache.org/jira/browse/FELIX-4456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet resolved FELIX-4456. ------------------------------------ Resolution: Fixed Fix Version/s: framework-5.0.2 Committing to https://svn.apache.org/repos/asf/felix/trunk ... M framework/src/main/java/org/apache/felix/framework/URLHandlersBundleURLConnection.java Committed r1696598 > 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: Guillaume Nodet > Fix For: framework-5.0.2 > > > 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.3.4#6332)