LWJGL
May 23, 2013, 08:52:13 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [FIXED] AppletLoader should not use a path with exclamation point  (Read 2109 times)
NateS
Regular nerd
**
Posts: 79


« on: March 12, 2011, 15:54:48 »

Code:
<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:

Code:
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:

Code:
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?
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #1 on: March 13, 2011, 07: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 Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!