[FIXED] AppletLoader should not use a path with exclamation point

Started by NateS, March 12, 2011, 23:54:48

Previous topic - Next topic

NateS

<param name='al_title' value='Carnage!'>


This fails badly... getResource will return a URL, but getResourceAsStream returns null. Only once you do getResource(...).openStream() do you get something like:

java.io.FileNotFoundException: C:\Users\Nate\AppData\Local\Temp\lwjglcache\localhost\Carnage (The system cannot find the file specified)


The URL for that exception was:

jar:file:C:/Users/Nate/AppData/Local/Temp//lwjglcache/localhost/Carnage!/Carnage.jar!/data/button_normal.png


Can LWJGL do some checking on "al_title" so that this hard to track down problem doesn't happen?

kappa

ah, thx for spotting and debugging this.

A bit of google-fu reveals this http://bugs.sun.com/view_bug.do?bug_id=4523159

So yet another 10 year old JVM bug.

Anyway MatthiasM suggested a fix (on #lwjgl) and it has now been applied to SVN.

You can use as many '!' as you want now :)