From b2aec83df14dd2f80829ffc496ee04062a7a05e2 Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Wed, 10 Jul 2013 11:44:24 -0400 Subject: Bug 412067 - isLoadable(); returns False due URL parse error --- .../common_j2se/org/eclipse/swt/internal/Library.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java b/bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java index 96fdd0490c..a73177abb1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/common_j2se/org/eclipse/swt/internal/Library.java @@ -176,12 +176,12 @@ static boolean isLoadable () { } catch (MalformedURLException e) { /* should never happen since url's initial path value must be valid */ } - String path = url.getPath (); - int index = path.indexOf ('!'); - File file = new File (path.substring (0, index)); Attributes attributes = null; try { + String path = URLDecoder.decode(url.getPath (), "UTF-8"); + int index = path.indexOf ('!'); + File file = new File (path.substring (0, index)); JarFile jar = new JarFile (file); attributes = jar.getManifest ().getMainAttributes (); } catch (IOException e) { -- cgit