commit | 0259f11848482068e4f8d701301c5ee0aa3fc00a | [log] [tgz] |
---|---|---|
author | Thomas Watson <tjwatson@us.ibm.com> | Sun Sep 29 21:20:09 2019 -0500 |
committer | Thomas Watson <tjwatson@us.ibm.com> | Sun Sep 29 21:20:09 2019 -0500 |
tree | 92261260a59c68f85d608e63f97349d36dde6f6e | |
parent | 72b7fae86de8abc4fb711bd660588648ca16ba89 [diff] |
Bug 551576 - BundleURLConnection.getContentLengthLong() always returns 0 Change-Id: I3d781b1f805f2c75b65bb56fe156f0f6e48750ef Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/BundleURLConnection.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/BundleURLConnection.java index 4b92876..d6a68fa 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/BundleURLConnection.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/BundleURLConnection.java
@@ -63,8 +63,8 @@ } @Override - public int getContentLength() { - return ((int) bundleEntry.getSize()); + public long getContentLengthLong() { + return bundleEntry.getSize(); } @Override