This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes compile error(overrides a deprecated  API) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "compile error(overrides a deprecated  API)" Watch "compile error(overrides a deprecated  API)" New topic

compile error(overrides a deprecated API)

Suela Smith

Joined: Apr 20, 2006
Posts: 11
Hi erveryone

anyone can halp me out with this compile error


java uses or overide a deprecated API

Recompile with -deprecation for details

any help would be greatly apriciated

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

It's not an error; it's a warning. You can safely ignore it, but it's telling you that there's a better way to do something that you're doing. It's also telling you how to find out more about what specifically the problem is: add "-deprecation" to your "javac" command line, and it will tell you specifically what deprecated API you're overriding.

"Deprecated" basically just means "being replaced by something better."

[Jess in Action][AskingGoodQuestions]
Suela Smith

Joined: Apr 20, 2006
Posts: 11
Where in javac lin should i add "deprecation"
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
javac -cp . -deprecation

As one example.
Have you checked out Aspose?
subject: compile error(overrides a deprecated API)
It's not a secret anymore!