Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2005

Tip: Looking for answers? Try searching our database.

Using old classes with new helper JAR

Thread view: 
nospam - 19 Aug 2005 05:20 GMT
Hi..All,

  In one of our application, we developed/complied a java code which
uses couple of 3rd party JAR files. Since last couple of years we have
been getting the new/updated JAR files from the 3rd party, but we never
complied our code with the new JAR files till now.
Recently we made some small enhancement to the JAVA code & are trying to
compile it with the latest JAR files. The compilation is throwing lot of
errors due to the deprecated methods we are calling.

I am wondering how did it work earlier i.e the same class file with new
3rd PARTY JAR files.

Regards,

P
Andrew Thompson - 19 Aug 2005 05:35 GMT
>    In one of our application, we developed/complied a java code which
> uses couple of 3rd party JAR files. Since last couple of years we have
[quoted text clipped - 3 lines]
> compile it with the latest JAR files. The compilation is throwing lot of
> errors due to the deprecated methods we are calling.

Deprecatad methods of what?  The core API, or the
3rd party Jars?

> I am wondering how did it work earlier i.e the same class file with new
> 3rd PARTY JAR files.

I do not understand your question.  Do you know
what 'deprecated' means (in this context)?

Basically it means 'we will remove these classes
someday, stop using them'.  Note that 'someday'
will usually not be 'soon'.

BTW - I note you cross-posted to
 comp.lang.java.programmer,comp.lang.java.developer
I'm not sure of the correct term, but c.l.j.d. is not
one of the 'core' Java usenet groups, for a list of the
major Java groups, check here..
<http://www.physci.org/codes/javafaq.jsp#groups>

Follow-Ups to this post set to c.l.j.programmer only.

HTH

Signature

Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"If I could find the reason, I'd know the answer why"
Status Quo 'Gerdundula'

Roedy Green - 20 Aug 2005 21:36 GMT
>I am wondering how did it work earlier i.e the same class file with new
>3rd PARTY JAR files.

The linkage is by name.  That way if a class you call acquires new
methods your old code calling it still works.

The deprecated warnings come only at compile time not run time. If you
ignore them at compile time, the run time is happy to use deprecated
methods.  That is why you never noticed the problem until now.

Look at Sun's code in AWT. They use deprecated methods all the time.
Deprecation is just a warning.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.