LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: NateS on March 12, 2011, 23:54:48

Title: [FIXED] AppletLoader should not use a path with exclamation point
Post by: NateS on March 12, 2011, 23:54:48

<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?
Title: Re: [BUG] AppletLoader should not use a path with exclamation point
Post by: kappa on March 13, 2011, 14:57:37
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 :)