Using a Java 1.5 compiler, when I try to compile a java class that depends on a class that was compiled with Java 1.6, I get this error:
in/javac Java15.java
Java15.java:5: cannot access Java16
bad class file: ./Java16.class
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
String java16result = Java16.test();
^
1 error
The reverse works (Using a Java 1.6 compiler, I can link with a Java 1.5 class.)
Is there any sort of workaround for this?