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 / Virtual Machine / September 2004

Tip: Looking for answers? Try searching our database.

Class differences between 2 compilations of the same source code

Thread view: 
Fran?ois Chastanet - 03 Sep 2004 17:01 GMT
Hello,

First,  I need to know if 2 successives compilations of the same source code
give the same class file? I test it, it seems to be true, but is it specific
to my JDK version ?

Second, is there a difference between 2 compilations with 2 differents JDKs?
Is there a documentation that describe those differences ?

Thanks in advance,
Fran?ois Chastanet
Andrew Thompson - 04 Sep 2004 04:39 GMT
On Fri, 3 Sep 2004 18:01:55 +0200, François Chastanet wrote:

> First,  I need to know if 2 successives compilations of the same source code
> give the same class file?

Yes.  If they are compiled with the same arguments.

> I test it, it seems to be true, but is it specific
> to my JDK version ?

It's specific to the arguments you give to javac.
<http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html#options>

HTH

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Chris Uppal - 04 Sep 2004 08:55 GMT
> First,  I need to know if 2 successives compilations of the same source
> code give the same class file? I test it, it seems to be true, but is it
> specific to my JDK version ?

Not necessarily.  The Sun compilers do seem to have this property in fact, but
it's not guaranteed that I know of (althoug it /may/ be a concious design aim).
Other compilers may not behave the same way.  For instance, see:

http://groups.google.com/groups?threadm=bq2p0a%243ol%241%40news-reader2.wanadoo.fr

> Second, is there a difference between 2 compilations with 2 differents
> JDKs?

Yes.

> Is there a documentation that describe those differences ?

None that I know of.

   -- chris


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.