Re: Macros controlling the source/target/release level flags for javac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 7, 2020 at 11:26 AM Jiri Vanek <jvanek@xxxxxxxxxx> wrote:
> The idea is, to provide rpm macros, keeping the default source/target eventually - for jdk11 and up -the release - numbers for javac to use.
> Then to provide tooling, which will help packagers to use them - for ant and maven it should be simple. For others, probably nothing to do on our side, each packager will be able to patch/sed theirs builds as necessary (Still it will help  a lot for future).

You seem to be implying that there should be a distro-wide default for
source/target/release values. What values do you propose to set them
to? 11?

Historically we always tried to stay close to upstream and follow
their choices for source/target/release whenever possible, changing
them only when necessary. A common case was upstreams targeting very
old Java releases that are no longer supported by current Java
compilers. Therefore IMHO it makes most sense to force *minimal*
source/target/release values, or change combinations that are known
not to work for sure. But overriding these values across the whole
distro is not a good idea in my opinion only, it only introduces
unnecessary deviation from upstreams, and potentially introduces bugs.

--
Mikolaj Izdebski

> I do not know how to provide them as default (except hardcoding in xmvn, and only allow to disable them on demand).
>
> This will smooth the bump to jdk17 in f36 really a lot.
>
>
> Thoughts?
>   J.
> --
> Jiri Vanek
> Senior QE engineer, OpenJDK QE lead, Mgr.
> Red Hat Czech
> jvanek@xxxxxxxxxx    M: +420775390109
> _______________________________________________
> java-devel mailing list -- java-devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to java-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/java-devel@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
java-devel mailing list -- java-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to java-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/java-devel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux