From: Stefan F. <ste...@we...> - 2010-04-09 15:30:51
|
Answers below: > > > And at least to my knowledge there is no setting to let the JRE behave > > like a > > previous version, or is there? > > If you mean changes in the actual library code rather than the compiler, > no, but then there really shouldn't be breaking changes between 1.5 and 1.6 > -- mostly 1.6 just added new APIs. But still the bytecode of 1.6 is not compatible with 1.5 (unless the compatibility flag is set - at least I hope that it is then). Avoiding the new APIs and the different annotation rules alone is not enough. Or do I miss something here? > > > The other issue was that I am to lazy to checkout the sources of JUnit > > myself > > and compiling it to to 5 again, if Erik can easily add one which works > under > > > Java 5. > > Are you saying that JUnit ships only 1.6 class files? No I am not (have not checked that - lazy), but at least the version of the junit jar that comes along with my eclipse build on my suse linux did not work with JRE 5, even if its manifest claims to be built with 1.4. |