Re: compatibility java 4 -> 5



On May 31, 6:48 am, o...@xxxxxxxxxxxxx wrote:
Hi,
In which case, a desktop java application working with a sun jre1.4
could not work with a sun jre 5 ?
I thought Sun guaranteed that compatibility (adds deprecated method
but not remove anything..)

thanks

A compiled Java 4 class SHOULD be compatible with Java 5 (byte-code
compatibility). This does not guaranty that there haven't been any
bugs introduced between versions.

Also, source code isn't necessarily compatible. Java 5 has added a few
keywords, and if those keywords were used as symbols in the Java 1.4
code, you'll get a compiler error.

.



Relevant Pages