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 / First Aid / June 2006

Tip: Looking for answers? Try searching our database.

how to know the api difference in diff version

Thread view: 
John_Woo - 23 Jun 2006 11:52 GMT
Hi,

I'm wondering, is there a command (ex. javadiffapi version 1 2) to show
the difference of a class/method api between version 1 and 2?

---
Thanks
John
Toronto
Oliver Wong - 28 Jun 2006 15:42 GMT
> Hi,
>
> I'm wondering, is there a command (ex. javadiffapi version 1 2) to show
> the difference of a class/method api between version 1 and 2?

   You could download the javadocs for each version, and run a UNIX diff on
the relevant files. For Sun's standard API, they tend to only add new API,
or deprecate old API. They *usually* don't change existing API, nor do they
completely remove old API.

   - Oliver
andrewthommo@gmail.com - 28 Jun 2006 16:22 GMT
...
> I'm wondering, is there a command (ex. javadiffapi version 1 2) to show
> the difference of a class/method api between version 1 and 2?

Theoretically, the /current/ JavaDocs should tell you the differences
through use of the @since tag in the source, but that information
is patch.

For example..
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSpinner.html
..reports that JSpinner is 'since 1.4', but beware!

http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html#WHITE
(Color.WHITE, as opposed to Color.white) also introduced in 1.4,
but /not/ documented.  ..I also quickly checked the javax.swing
package summary and another swing class to see that neither
had an @since tag.  Uggghhh!

OTOH, all is not lost, if you can obtain a JRE of the variety
you are interested in, you can find out quite definitely if it
has a particular class, field of method - by compiling
Java source using it as the -bootclasspath.

HTH

Andrew T.


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



©2008 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.