• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deprecated API

 
Tim Barker
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To Expert:
Does anyone know why I am receiving the following warning:
Note: C:\JavaPro\HTML\Applet\yig3.java uses or overrides a deprecated API. Recompile with "-deprecation" for details.
1 warning
Process completed successfully

I am not sure what a deprecated API is.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that you are using a method(s) that is no longer supported. It may go away in the next release so follow the instructions and recompile. The API will tell you what methods replaced the one(s) in question.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do what it says. Recompile using
>javac -deprecation yig3.java
and it will tell you what method of what object is the offender.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic