Hello Guest

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

  • 3 Replies
  • 7291 Views
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 »
Regards. Cottonwood.

*

Offline kappa

  • *****
  • 1316
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/

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

*

Offline kappa

  • *****
  • 1316
fair point, I've updated wiki to use non deprecated method.