Java min version for master sources?
Stephan Bergmann
sbergman at redhat.com
Tue May 21 11:09:21 UTC 2019
On 21/05/2019 12:06, julien2412 wrote:
> sberg wrote
>> ...
>> 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.
>
> Taking a look to
> https://opengrok.libreoffice.org/search?project=core&full=JAVA_TARGET_VER&defs=&refs=&path=&hist=&type=&si=full,
> I don't see the use of "JAVA_SOURCE_VER" or "JAVA_TARGET_VER" var in
> "scripting" part.
See gb_JavaClassSet_JAVACCOMMAND in solenv/gbuild/JavaClassSet.mk, which
is what gets used by the scripting/Jar_*.mk.
> Reading
> https://stackoverflow.com/questions/15492948/javac-source-and-target-options,
> it seems even more complicated since we should use too "bootclasspath"
> option too.
Ah, right, it was -bootclasspath that would allow javac to check that we
don't use too new Java API features.
More information about the LibreOffice
mailing list