The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

compiling error..

Posted by parameswaran on December 14, 2000 at 3:03 AM

> hi.. when i tried to compile a program , it gave an error msg such that
> " file.java uses or overrides a deprecated API. Recompile with "-deprecation" for details ..
> does anyone know how to overcome this msg ??


Dear

This is because you are compiling the old version source with new
java version java. In java 1.3 There are new functions for some old functions they are all deprecated. Still you will not get any
errors but it will suggest you to use the new functions which will be more efficient.

it will vary version to version in java...

just compile with the keyword -deprecation and find out which
deprecated function you are using in your code and then find out the right function and replace the deprecated functions with the new one.


param





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us