Re: Q: javac -source and -target version

2023-10-10 Thread Emmanuel Bourg
Hi Hideki, Le 08/10/2023 à 05:25, Hideki Yamane a écrit : Thank you, and how about adding java_compat_level=8 for Java21? Since some FTBFS reports are there. https://salsa.debian.org/java-team/java-common/-/merge_requests/3 java_compat_level=8 is supported in java-common/0.75+exp1 in e

Re: Q: javac -source and -target version

2023-10-07 Thread Hideki Yamane
Hi, On Thu, 5 Oct 2023 01:26:11 +0200 Emmanuel Bourg wrote: > I've just uploaded java-common/0.75 with a new java_compat_level > variable if you want to give it a try: > >#!/usr/bin/make -f > >include /usr/share/java/java_defaults.mk > >build: >javac -source $(java_co

Re: Q: javac -source and -target version

2023-10-04 Thread Emmanuel Bourg
Le 05/10/2023 à 01:07, Hideki Yamane a écrit : We should probably provide the minimum language level supported as a variable in the /usr/share/java/java_defaults.mk file from java-common. Nice, each Java packages do not need to care about which level should use and drop it safely, then?

Re: Q: javac -source and -target version

2023-10-04 Thread Hideki Yamane
Hi, On Wed, 4 Oct 2023 19:49:44 +0200 Emmanuel Bourg wrote: > We should probably provide the minimum language level supported as a > variable in the /usr/share/java/java_defaults.mk file from java-common. Nice, each Java packages do not need to care about which level should use and drop it sa

Re: Q: javac -source and -target version

2023-10-04 Thread Emmanuel Bourg
Le 04/10/2023 à 13:36, Hideki Yamane a écrit : Well, is there any text / document to use which version should be used for -source and -target version, or is just dropping those options allowed? For Java 17 the minimum was 7, and with Java 21 the minimum is 8. For packages using ant, Mav

Q: javac -source and -target version

2023-10-04 Thread Hideki Yamane
Hi, Some of Java packages are FTBFS with Java21 due to javac -source and -target version is lower than that is supported in Java21. Well, is there any text / document to use which version should be used for -source and -target version, or is just dropgping those options allowed? Maybe I a