LWJGL
May 25, 2013, 06:57:32 *
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: [solved] lwjgl Slick Sound; The method toURL() from the type File is deprecated  (Read 1810 times)
Cottonwood
Regular nerd
**
Posts: 50



WWW
« on: December 16, 2010, 04:26:03 »

Eclipse brings up twice a message "The method toURL() from the type File is deprecated" for this sample: http://lwjgl.org/wiki/index.php?title=Slick-Util_Library_-_Part_2_-_Loading_Sounds_for_LWJGL

For me it seems so that it doesn't matter. Am I right or is there anything to change?
Logged

Regards. Cottonwood.
kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #1 on: December 16, 2010, 04:32:40 »

seems that file.toURL() is depreciated in Java but should still work, you can however change it to use file.toURI().toURL() to make the message go away.

see
http://oohbegitu.wordpress.com/2007/10/08/deprecated-file-tourl-method-in-java-6/
Logged
Cottonwood
Regular nerd
**
Posts: 50



WWW
« Reply #2 on: December 16, 2010, 05:16:39 »

Thank you. I changed it for me. I prefer to have no "deprecated" marked statements. Could sooner or later become depreciated. Grin Wink
Logged

Regards. Cottonwood.
kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #3 on: December 16, 2010, 05:33:16 »

fair point, I've updated wiki to use non deprecated method.
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!