From: <ka...@us...> - 2011-03-13 14:54:42
|
Revision: 3498 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3498&view=rev Author: kappa1 Date: 2011-03-13 14:54:36 +0000 (Sun, 13 Mar 2011) Log Message: ----------- AppletLoader: fix JVM bug where '!' is not escaped on the URL, thanks to NateS for spotting it and special thanks to MatthiasM for the fix. Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2011-03-12 21:16:22 UTC (rev 3497) +++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2011-03-13 14:54:36 UTC (rev 3498) @@ -1009,7 +1009,10 @@ URL[] urls = new URL[urlList.length]; for (int i = 0; i < urlList.length; i++) { - urls[i] = new URL("file:" + path + getJarName(urlList[i])); + String file = new File(path, getJarName(urlList[i])).toURI().toString(); + // fix JVM bug where ! is not escaped + file = file.replaceAll("!", "%21"); + urls[i] = new URL(file); } // add downloaded jars to the classpath with required permissions This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |