diff options
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/reference/ReferenceURLConnection.java')
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/reference/ReferenceURLConnection.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/reference/ReferenceURLConnection.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/reference/ReferenceURLConnection.java index 82c847d4e..c776c8b0b 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/reference/ReferenceURLConnection.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/url/reference/ReferenceURLConnection.java @@ -15,7 +15,7 @@ import java.io.*; import java.net.URL; import java.net.URLConnection; import org.eclipse.osgi.framework.util.FilePath; -import org.eclipse.osgi.internal.framework.EquinoxConfiguration; +import org.eclipse.osgi.internal.location.LocationHelper; /** * URLConnection for the reference protocol. @@ -45,14 +45,7 @@ public class ReferenceURLConnection extends URLConnection { file = makeAbsolute(installPath, file); } - // Pre-check if file exists, if not, and it contains escape characters, - // try decoding the absolute path generated by makeAbsolute - if (!file.exists() && path.indexOf('%') >= 0) { - String decodePath = EquinoxConfiguration.decode(file.getAbsolutePath()); - File f = new File(decodePath); - if (f.exists()) - file = f; - } + file = LocationHelper.decodePath(file); ref = file.toURL(); checkRead(file); |