In practice, no. While the bytecode versioning is well defined, runtime 
changes break compatibility. To take an example seen a few days ago, in 
Java 7 the FileChannel interface has a new interface 
SeekableByteChannel. Implementations of FileChannel compiled with Java 7 
(even with target 6 as we have) cannot be loaded by a Java 6 JRE because 
the interface SeekableByteChannel, which is mentioned in the class file, 
cannot be found in that environment. Result:
java.lang.NoClassDefFoundError: java/nio/channels/SeekableByteChannel

Kind regards,
Ben.

On 11/06/13 12:06, Brett Walker wrote:
> Can the source code and the target code be split?  For example, could the 
> source code be Java 7 but target  code be Java 6. Is this a useful transition?

-- 
Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to