Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Recompile with -deprecation for details.

 
Carlos Villarreal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note: ChatHandler.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
I'm new java developer with a minimum exprience, in other words a beginner.
Do you have any clue to solve the above messages ?
Any assistance will be appreciated.
Thanks in advances for your tips,
 
Timo Hahn
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your class chathandler.java overwrites one or more deprecated methods (methods you should no longer use because they are error prone and/or likely to be removed in future java releases).
use the -deprecated switch when you complie you code to get a detailed list of methods your code overwrites which are deprecated. Then check the java doc's to get help on how to use an other method whitch is not deprecated.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to Java in General (Beginner) since this doesn't directly pertain to GUI programming...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic