db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r427866 - /db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/sysinfo/Main.java
Date Wed, 02 Aug 2006 03:06:16 GMT
Author: fuzzylogic
Date: Tue Aug  1 20:06:16 2006
New Revision: 427866

URL: http://svn.apache.org/viewvc?rev=427866&view=rev
Log:
DERBY-1619: Decode encoded characters in path URLs in sysinfo. Prevents
duplicate entries for jar files from appearing in the output when the path
contains a character which gets encoded when passed as a URL.

Modified:
    db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/sysinfo/Main.java

Modified: db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/sysinfo/Main.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/sysinfo/Main.java?rev=427866&r1=427865&r2=427866&view=diff
==============================================================================
--- db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/sysinfo/Main.java (original)
+++ db/derby/code/trunk/java/tools/org/apache/derby/impl/tools/sysinfo/Main.java Tue Aug 
1 20:06:16 2006
@@ -42,6 +42,7 @@
 import java.io.InputStream;
 import java.lang.reflect.Method;
 import java.net.URL;
+import java.net.URLDecoder;
 import java.security.ProtectionDomain;
 import java.security.CodeSource;
 import java.security.AccessController;
@@ -1188,7 +1189,7 @@
      */
     private static String formatURL(URL loc)
     {
-        String filename = loc.toString();
+        String filename = URLDecoder.decode(loc.toString());
 
         if (filename.startsWith("jar:")) { filename = filename.substring(4); }
         if (filename.startsWith("file:")) { filename = filename.substring(5); }



Mime
View raw message