Hello
Guest
Register
Login
1 Hour
1 Day
1 Week
1 Month
Forever
LWJGL 3.3.2 released
Menu
Home
Help
Search
Login
Register
go
LWJGL Forum
Programming
OpenAL
[solved] lwjgl Slick Sound; The method toURL() from the type File is deprecated
« previous
next »
Print
Pages: [
1
]
[solved] lwjgl Slick Sound; The method toURL() from the type File is deprecated
3 Replies
10881 Views
Cottonwood
50
[solved] lwjgl Slick Sound; The method toURL() from the type File is deprecated
«
on:
December 16, 2010, 12: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?
«
Last Edit: December 16, 2010, 13:17:01 by Cottonwood
»
Logged
Regards. Cottonwood.
kappa
1319
Re: lwjgl Slick Sound; The method toURL() from the type File is deprecated
«
Reply #1 on:
December 16, 2010, 12: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
50
Re: lwjgl Slick Sound; The method toURL() from the type File is deprecated
«
Reply #2 on:
December 16, 2010, 13:16:39 »
Thank you. I changed it for me. I prefer to have no "deprecated" marked statements. Could sooner or later become depreciated.
Logged
Regards. Cottonwood.
kappa
1319
Re: [solved] lwjgl Slick Sound; The method toURL() from the type File is deprecated
«
Reply #3 on:
December 16, 2010, 13:33:16 »
fair point, I've updated wiki to use non deprecated method.
Logged
Print
Pages: [
1
]
« previous
next »