I believe that Jian deserves a better answer.

Jian, a deprecated method is like a "marked" method that means that's something
wrong with it implementation. Often people find bugs in methods that are
reported to Sun. If they consider that there is a bug the fix the problem and
mark the old method like deprecated just to keep compability with software
writted with older version of JDK. Sometimes there is no need to find a bug,
just a better way to do something to mark a method as deprecated. Ted is right
when he says that someday this method will be removed so be careful when use
them. Always is better to use the "new one". Look at javadocs beacause usually
the "better ways" are documented there.


Esteban Felipe
Microsoft Certified Profesional
IBM de Venezuela S.A.
Address: Edificio IBM, Av. Ernesto Blohm, Chuao, Caracas 1060, Venezuela
TLF:  (582) - 9088379
Lotus Notes ID:  Esteban Felipe/Venezuela/Contr/IBM@VE
Internel Mail: [EMAIL PROTECTED]




Ted Neward <[EMAIL PROTECTED]> on 11/12/99 06:53:44 AM

Please respond to Ted Neward <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Esteban Felipe/Venezuela/Contr/IBM)

Subject:  Re: Question on Deprecation



Easy: don't use that method. It's deprecated because Sun plans on removing
it from the API someday.

Ted Neward
CTO, WebRaiser ( http://www.webraiser.com )
Java Instructor, DevelopMentor ( http://www.develop.com )
Author: "Core OWL 5.0", "Advanced OWL 5.0", "Server-Side Java"
 http://www.manning.com )
Patterns/C++/Java/CORBA/EJB/COM-DCOM spoken here
http://www.javageeks.com/~tneward

-----Original Message-----
From: Jian Li <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, November 11, 1999 7:35 PM
Subject: Question on Deprecation


>Hi, All,
>
>Forgive me if you think it's a dummy's question.:-)
>
>How to fix this warning?
>
>'PrintStream(OutputStream)' has been deprecated by the author of
>'java.io.PrintStream'(J5014)
>
>I am using JDK1.2.1, JSDK2.1, JavaWebServer1.1.3.  The programm I am
>testing now is from Java Servlet Programming, a O'REILLY book by Jason
>Hunter.  I also use calsses from it, called com.oreilly.servlet package.
>So, any confilct there?  I have no new edition to try.;)
>
>Thanks in Advance.
>
>Jian
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to