Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2019-09-29 22:20:09 -0400
committerThomas Watson2019-09-29 22:20:09 -0400
commit0259f11848482068e4f8d701301c5ee0aa3fc00a (patch)
tree92261260a59c68f85d608e63f97349d36dde6f6e
parent72b7fae86de8abc4fb711bd660588648ca16ba89 (diff)
downloadrt.equinox.framework-0259f11848482068e4f8d701301c5ee0aa3fc00a.tar.gz
rt.equinox.framework-0259f11848482068e4f8d701301c5ee0aa3fc00a.tar.xz
rt.equinox.framework-0259f11848482068e4f8d701301c5ee0aa3fc00a.zip
Bug 551576 - BundleURLConnection.getContentLengthLong() always returns 0I20190930-1800
Change-Id: I3d781b1f805f2c75b65bb56fe156f0f6e48750ef Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/BundleURLConnection.java4
1 files changed, 2 insertions, 2 deletions
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 4b92876b7..d6a68fa7e 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 @@ public class BundleURLConnection extends URLConnection {
}
@Override
- public int getContentLength() {
- return ((int) bundleEntry.getSize());
+ public long getContentLengthLong() {
+ return bundleEntry.getSize();
}
@Override

Back to the top