Stuart McCulloch created FELIX-4456:
---------------------------------------
Summary: 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
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)