Revision: 5867
http://jython.svn.sourceforge.net/jython/?rev=5867&view=rev
Author: otmarhumbel
Date: 2009-01-07 17:42:04 +0000 (Wed, 07 Jan 2009)
Log Message:
-----------
fixed the first stumbling stone for issue #1208
Modified Paths:
--------------
trunk/installer/src/java/org/python/util/install/JarInfo.java
Modified: trunk/installer/src/java/org/python/util/install/JarInfo.java
===================================================================
--- trunk/installer/src/java/org/python/util/install/JarInfo.java 2009-01-07 17:39:42 UTC (rev 5866)
+++ trunk/installer/src/java/org/python/util/install/JarInfo.java 2009-01-07 17:42:04 UTC (rev 5867)
@@ -112,7 +112,7 @@
// we expect an URL like:
// jar:file:/C:/stuff/jython21i.jar!/org/python/util/install/JarInfo.class
String urlString = URLDecoder.decode(url.toString(), "UTF-8");
- int jarSeparatorIndex = urlString.indexOf(JAR_SEPARATOR);
+ int jarSeparatorIndex = urlString.lastIndexOf(JAR_SEPARATOR);
if (!urlString.startsWith(JAR_URL_PREFIX) || jarSeparatorIndex <= 0) {
throw new InstallerException(Installation.getText(TextKeys.UNEXPECTED_URL, urlString));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|