[solved] lwjgl Slick Sound; The method toURL() from the type File is deprecated

Started by Cottonwood, December 16, 2010, 12:26:03

Previous topic - Next topic

Cottonwood

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?
Regards. Cottonwood.

kappa

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/

Cottonwood

Thank you. I changed it for me. I prefer to have no "deprecated" marked statements. Could sooner or later become depreciated. ;D ;)
Regards. Cottonwood.

kappa