Java min version for master sources?

Stephan Bergmann sbergman at
Tue May 21 09:32:48 UTC 2019

On 21/05/2019 11:24, julien2412 wrote:
> ...
> The baseline is actually Java 6.  We use `javac --target 1.6` (see
> JAVA_TARGET_VER in to generate code that is compatible
> with the Java 6 JVM spec, and our source code must only use Java API
> features that are present in Java 6 (though `javac --source 1.6 --target
> 1.6` apparently doesn't check that).
> ...
> </>
> If we want to be fully compatible with Java 6, would it be possible to make
> this patch
> fail locally (even if we use Java 8+ locally) or on Jenkins so it wouldn't
> have been pushed?

As I wrote, "though `javac --source 1.6 --target 1.6` apparently doesn't 
check that".  So I guess to make such mistakes fail locally or for 
Gerrit/Jenkins, you would need to actually use Java 6 to build there.

More information about the LibreOffice mailing list