The Artima Developer Community
Sponsored Link

Java Answers Forum
DEPRECATION

2 replies on 1 page. Most recent reply: Jul 5, 2003 3:48 AM by zenykx

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
sudeep

Posts: 2
Nickname: sudeep
Registered: Jul, 2003

DEPRECATION Posted: Jul 4, 2003 10:35 AM
Reply to this message Reply
Advertisement
Hi all,

While compiling a code developed in 1998, I am getting
this error message..

Note: C:\Java\proimage\DialogLayout.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.

Is it anything like obsolete API...!
how can I recompile with -deprecation..?

Thanks,
Sudeep


sudeep

Posts: 2
Nickname: sudeep
Registered: Jul, 2003

Re: DEPRECATION Posted: Jul 4, 2003 10:42 AM
Reply to this message Reply
I came to know how to recompile with -deprecation,
its just adding -deprecation after
"javac xxx.java -deprecation".

Can anybody tell what should I do when I am getting the following warning messages

C:\Java\proimage>javac dialoglayout.java -deprecation
dialoglayout.java:93: warning: countComponents() in java.awt.Container has beendeprecated
int count = parent.countComponents();
^
dialoglayout.java:97: warning: insets() in java.awt.Container has been deprecated
Insets insets = parent.insets();
^
dialoglayout.java:120: warning: reshape(int,int,int,int) in java.awt.Component has been deprecated

c.reshape(rect.x, rect.y, rect.width, rect.height);
^
3 warnings

Thanks in advance
Sudeep

zenykx

Posts: 69
Nickname: zenykx
Registered: May, 2003

Re: DEPRECATION Posted: Jul 5, 2003 3:48 AM
Reply to this message Reply
Try to retrieve in the new javadoc the methods that are intended to replace the ones you used. If you cannot find, just let them live!

Flat View: This topic has 2 replies on 1 page
Topic: Servlet - Applet Communication Previous Topic   Next Topic Topic: string to long

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use