Hello Guest

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

  • 1 Replies
  • 5226 Views
*

Offline NateS

  • **
  • 91
    • Esoteric Software
Code: [Select]
<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: [Select]
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: [Select]
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?

*

Online kappa

  • *****
  • 1313
Re: [BUG] AppletLoader should not use a path with exclamation point
« Reply #1 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 :)