In my commit today for SOLR-5818, the backport to 4x had an issue with
using Long.compare, which was introduced in 1.7.  However, I was able to
compile and run the tests successfully on branch_4x before committing.
 Looking back, I see a lot of warning messages like:

"bootstrap class path not set in conjunction with -source 1.6"

Based on some cursory googling, it seems like that means it doesn't have
the 1.6 rt.jar, so it uses the 1.7 libs, but the 1.6 language rules.  That
would explain why Long.compare was "ok" according to javac.

I see common-build.xml is setting the bootclasspath, and that I believe I
can point the "bootjdk" property at 1.6.  But is there a way we can error
on this in the build, to prevent these kind of backport issues?

Thanks
Ryan

Reply via email to