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